From b703a612d7ca96e9c79f40a33208757bba6e9d7e Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Wed, 23 Apr 2014 05:41:55 -0700 Subject: Put back assert so tests checking for fail will find fail where expected --- indra/llcommon/llinstancetracker.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/llcommon/llinstancetracker.h b/indra/llcommon/llinstancetracker.h index b039290037..fc51fbd2f9 100755 --- a/indra/llcommon/llinstancetracker.h +++ b/indra/llcommon/llinstancetracker.h @@ -38,6 +38,8 @@ #include #include +#include "llerror.h" + /** * Base class manages "class-static" data that must actually have singleton * semantics: one instance per process, rather than one instance per module as @@ -305,6 +307,7 @@ protected: virtual ~LLInstanceTracker() { // it's unsafe to delete instances of this type while all instances are being iterated over. + llassert_always(getStatic().sIterationNestDepth == 0); getSet_().erase(static_cast(this)); } -- cgit v1.2.3