summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2014-04-23 05:41:55 -0700
committerGraham Linden <graham@lindenlab.com>2014-04-23 05:41:55 -0700
commitb703a612d7ca96e9c79f40a33208757bba6e9d7e (patch)
treed9ebd3f7bcdcd62d22374c816d564f83ea87bddf /indra
parent5cbcff7b4045e5246eee5c86f789394510cb0669 (diff)
Put back assert so tests checking for fail will find fail where expected
Diffstat (limited to 'indra')
-rwxr-xr-xindra/llcommon/llinstancetracker.h3
1 files changed, 3 insertions, 0 deletions
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 <boost/iterator/transform_iterator.hpp>
#include <boost/iterator/indirect_iterator.hpp>
+#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<T*>(this));
}