shared_ptr is already in C++03 pre-releases; refs #7

This commit is contained in:
Marc Wäckerlin
2013-09-27 12:51:06 +00:00
parent 73ae395147
commit 90a391faa4

View File

@@ -28,7 +28,8 @@
# ifdef MRW__OLD_PRE11_COMPILER
# include <boost/shared_ptr.hpp>
# if __cplusplus > 200300L
# include <boost/shared_ptr.hpp>
namespace std {
// there is no std::shared_ptr in pre C++11 compilers, so we use the
// one from the boost library as a 1:1 replacement
@@ -37,6 +38,7 @@ namespace std {
explicit shared_ptr(T* p): boost::shared_ptr<T>(p) {}
};
};
# endif
# endif
#endif