]> git.lyx.org Git - features.git/blobdiff - src/support/shared_ptr.h
don't pollute the global namespace, move bind and shared_ptr into the lyx scope.
[features.git] / src / support / shared_ptr.h
index 6976a5b4c5483fd3be9248000bcb68a1d7d010e8..a671211a5cfb07413974a8b570c8e2a8ceeaf72c 100644 (file)
 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
 
 #include <memory>
-using std::tr1::shared_ptr;
+
+namespace lyx
+{
+       using std::tr1::shared_ptr;
+}
 
 #else
 
 #include <boost/shared_ptr.hpp>
-using boost::shared_ptr;
+
+namespace lyx
+{
+       using boost::shared_ptr;
+}
 
 #endif