next try, doku; refs #11

master
Marc Wäckerlin 10 years ago
parent 73c92ff229
commit f4e0dc4f3a
  1. 5
      src/mrw/checkcxx11.hxx

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

Loading…
Cancel
Save