Skip to content
Snippets Groups Projects
Commit b703a612 authored by Graham Linden's avatar Graham Linden
Browse files

Put back assert so tests checking for fail will find fail where expected

parent 5cbcff7b
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ class LLInstanceTracker<T, T*> : public LLInstanceTrackerBase
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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment