summaryrefslogtreecommitdiffstats
path: root/raul/WeakPtr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/WeakPtr.hpp')
-rw-r--r--raul/WeakPtr.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/raul/WeakPtr.hpp b/raul/WeakPtr.hpp
index 031c995..001599c 100644
--- a/raul/WeakPtr.hpp
+++ b/raul/WeakPtr.hpp
@@ -18,9 +18,13 @@
#ifndef RAUL_WEAK_PTR_HPP
#define RAUL_WEAK_PTR_HPP
-#include <boost/weak_ptr.hpp>
-
-#define WeakPtr boost::weak_ptr
+#ifdef RAUL_CPP0x
+# include <memory>
+# define WeakPtr std::weak_ptr
+#else
+# include <boost/weak_ptr.hpp>
+# define WeakPtr boost::weak_ptr
+#endif
#endif // RAUL_WEAK_PTR_HPP