fallback for old compilers; refs #26

This commit is contained in:
Marc Wäckerlin
2013-06-13 09:24:25 +00:00
parent 16d3a720d8
commit ab52b83f35

View File

@@ -76,7 +76,10 @@
#if __cplusplus <= 199711L
#include <boost/shared_ptr.hpp>
namespace std {
typedef shared_ptr boost::shared_ptr;
template<class T> class shared_ptr: public boost::shared_ptr<T> {
public:
shared_ptr(T* p): boost::shared_ptr<T>(p) {}
};
}
#endif