Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / serialization / singleton.hpp
index a668100..427e1bb 100644 (file)
@@ -178,7 +178,7 @@ private:
         // Unfortunately, this triggers detectors of undefine behavior
         // and reports an error.  But I've been unable to find a different
         // of guarenteeing that the the singleton is created at pre-main time.
-        use(* m_instance);
+        if (m_instance) use(* m_instance);
 
         return static_cast<T &>(t);
     }