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

master
Marc Wäckerlin 11 years ago
parent 73ae395147
commit 90a391faa4
  1. 4
      src/mrw/checkcxx11.hxx

@ -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

Loading…
Cancel
Save