next try, doku; refs #11
This commit is contained in:
		@@ -50,6 +50,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#  ifdef MRW__OLD_PRE11_COMPILER
 | 
					#  ifdef MRW__OLD_PRE11_COMPILER
 | 
				
			||||||
#    if __cplusplus<200300L
 | 
					#    if __cplusplus<200300L
 | 
				
			||||||
 | 
					#      warning emulating C++11 support using boost
 | 
				
			||||||
#      include <boost/shared_ptr.hpp>
 | 
					#      include <boost/shared_ptr.hpp>
 | 
				
			||||||
namespace std {
 | 
					namespace std {
 | 
				
			||||||
  // there is no std::shared_ptr in pre C++11 compilers, so we use the
 | 
					  // there is no std::shared_ptr in pre C++11 compilers, so we use the
 | 
				
			||||||
@@ -66,6 +67,8 @@ namespace std {
 | 
				
			|||||||
      explicit unique_ptr(T* p): auto_ptr<T>(p) {}
 | 
					      explicit unique_ptr(T* p): auto_ptr<T>(p) {}
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					#    else
 | 
				
			||||||
 | 
					#      warning trying standard C++11 support
 | 
				
			||||||
#    endif
 | 
					#    endif
 | 
				
			||||||
#  elsif __APPLE__
 | 
					#  elsif __APPLE__
 | 
				
			||||||
#    warning you need a C++11 compliant compiler, on gcc: add -std=c++11
 | 
					#    warning you need a C++11 compliant compiler, on gcc: add -std=c++11
 | 
				
			||||||
@@ -83,6 +86,8 @@ namespace std {
 | 
				
			|||||||
           explicit shared_ptr(T* p): tr1::shared_ptr<T>(p) {}
 | 
					           explicit shared_ptr(T* p): tr1::shared_ptr<T>(p) {}
 | 
				
			||||||
       };
 | 
					       };
 | 
				
			||||||
     }
 | 
					     }
 | 
				
			||||||
 | 
					#  else
 | 
				
			||||||
 | 
					#    warning found C++11 support, everything is fine
 | 
				
			||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user