]> git.lyx.org Git - lyx.git/blobdiff - src/support/shared_ptr.h
Add quote style information to languages
[lyx.git] / src / support / shared_ptr.h
index 6976a5b4c5483fd3be9248000bcb68a1d7d010e8..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>
-using std::tr1::shared_ptr;
+
+#ifdef __GNUC__
+#include <tr1/memory>
+#endif
+
+namespace lyx
+{
+       using std::tr1::shared_ptr;
+       using std::tr1::const_pointer_cast;
+}
 
 #else
 
 #include <boost/shared_ptr.hpp>
-using boost::shared_ptr;
+
+namespace lyx
+{
+       using boost::shared_ptr;
+       using boost::const_pointer_cast;
+}
 
 #endif