Loki Factory-Singleton throws “dead reference detected” in try-catch-block on ARM
问题 I am using Loki SingletonHolder in combination with Loki Factory in my project. The following example basically consists of two lines of code in the try-block to 1.) use the factory 2.) then throw an exception. #include <iostream> #include <loki/Singleton.h> #include <loki/Factory.h> class AbstractBase {}; class ConcreteChild : public AbstractBase {}; class TestFactory: public Loki::SingletonHolder< Loki::Factory<AbstractBase, std::string> > {}; template <class T> T* createNew() { return new