]> git.lyx.org Git - lyx.git/blobdiff - src/support/shared_ptr.h
Extend the otexstream class to also report about paragraph breaks.
[lyx.git] / src / support / shared_ptr.h
index a671211a5cfb07413974a8b570c8e2a8ceeaf72c..69e42da23c216a96732d2a57c52772fee520df2e 100644 (file)
 #ifndef LYX_SHARED_PTR_H
 #define LYX_SHARED_PTR_H
 
-#if defined(_MSC_VER) && (_MSC_VER >= 1600)
+#ifdef LYX_USE_TR1
 
 #include <memory>
 
+#ifdef __GNUC__
+#include <tr1/memory>
+#endif
+
 namespace lyx
 {
        using std::tr1::shared_ptr;
+       using std::tr1::const_pointer_cast;
 }
 
 #else
@@ -28,6 +33,7 @@ namespace lyx
 namespace lyx
 {
        using boost::shared_ptr;
+       using boost::const_pointer_cast;
 }
 
 #endif