]> git.lyx.org Git - lyx.git/blobdiff - src/support/shared_ptr.h
Fix bugs #6078 and #9364
[lyx.git] / src / support / shared_ptr.h
index 04dfc501a633e45ddf16fedce1b24a587b562044..bb613de5639f7cf96a0408c05ba75ffd52275fc3 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYX_SHARED_PTR_H
 #define LYX_SHARED_PTR_H
 
-#if __cplusplus >= 201103L
+#ifdef LYX_USE_CXX11
 
 #include <memory>
 #define LYX_SHAREDPTR_NS std
@@ -20,6 +20,7 @@
 #else
 
 #include <boost/shared_ptr.hpp>
+#include <boost/make_shared.hpp>
 #define LYX_SHAREDPTR_NS boost
 
 #endif
@@ -27,6 +28,7 @@
 namespace lyx
 {
        using LYX_SHAREDPTR_NS::shared_ptr;
+       using LYX_SHAREDPTR_NS::make_shared;
        using LYX_SHAREDPTR_NS::const_pointer_cast;
 }