next try, doku; refs #11

master
Marc Wäckerlin 10 years ago
parent 6850c70b69
commit 73c92ff229
  1. 9
      src/mrw/checkcxx11.hxx

@ -68,14 +68,19 @@ namespace std {
}; };
# endif # endif
# elsif __APPLE__ # elsif __APPLE__
# warning you need a C++11 compliant compiler, on gcc: add -std=c++11
# warning emulating C++11 - this changes the way you use the library
# warning this is deprecated and will be removed in future releases
# warning refere to the library documentation for more details
# warning special workaround for apple
# include <tr1/memory> # include <tr1/memory>
namespace std { namespace std {
// there is no std::shared_ptr in apple, but // there is no std::shared_ptr in apple, but
// std::tr1::shared_ptr in <tr1/memory> // std::tr1::shared_ptr in <tr1/memory>
template <typename T> class shared_ptr: public tr1::shared_ptr<T> { template <typename T> class shared_ptr: public tr1::shared_ptr<T> {
public: public:
explicit shared_ptr(): boost::shared_ptr<T>() {} explicit shared_ptr(): tr1::shared_ptr<T>() {}
explicit shared_ptr(T* p): boost::shared_ptr<T>(p) {} explicit shared_ptr(T* p): tr1::shared_ptr<T>(p) {}
}; };
} }
# endif # endif

Loading…
Cancel
Save