shared_ptr is already in C++03 pre-releases; refs #7
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user