#ifndef CXX11COMPAT_H #define CXX11COMPAT_H template shared_ptr make_shared(void) { return shared_ptr(new T()); } template shared_ptr make_shared(const TArg1& arg1) { return shared_ptr(new T(arg1)); } template shared_ptr make_shared(const TArg1& arg1, const TArg2& arg2) { return shared_ptr(new T(arg1, arg2)); } #endif /* CXX11COMPAT_H */