diff options
Diffstat (limited to 'cpp/src/memory.h')
-rw-r--r-- | cpp/src/memory.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/src/memory.h b/cpp/src/memory.h new file mode 100644 index 0000000000..2d65877adb --- /dev/null +++ b/cpp/src/memory.h @@ -0,0 +1,17 @@ +#ifndef __UTIL_MEMORY__ +#define __UTIL_MEMORY__ + +#if __GNUC__ < 4 + #include "boost/shared_ptr.hpp" + namespace std { + namespace tr1 { + using boost::shared_ptr; + using boost::dynamic_pointer_cast; + using boost::static_pointer_cast; + } + } +#else + #include <tr1/memory> +#endif +#endif + |