next try, doku; refs #11
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
|
||||
# ifdef MRW__OLD_PRE11_COMPILER
|
||||
# if __cplusplus<200300L
|
||||
# warning emulating C++11 support using boost
|
||||
# include <boost/shared_ptr.hpp>
|
||||
namespace std {
|
||||
// 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) {}
|
||||
};
|
||||
};
|
||||
# else
|
||||
# warning trying standard C++11 support
|
||||
# endif
|
||||
# elsif __APPLE__
|
||||
# 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) {}
|
||||
};
|
||||
}
|
||||
# else
|
||||
# warning found C++11 support, everything is fine
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user