From 90a391faa47299bcdde3f97726c12f1be2b89f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 27 Sep 2013 12:51:06 +0000 Subject: [PATCH] shared_ptr is already in C++03 pre-releases; refs #7 --- src/mrw/checkcxx11.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mrw/checkcxx11.hxx b/src/mrw/checkcxx11.hxx index 82e9f13..13dac1f 100644 --- a/src/mrw/checkcxx11.hxx +++ b/src/mrw/checkcxx11.hxx @@ -28,7 +28,8 @@ # ifdef MRW__OLD_PRE11_COMPILER -# include +# if __cplusplus > 200300L +# include namespace std { // there is no std::shared_ptr in pre C++11 compilers, so we use the // one from the boost library as a 1:1 replacement @@ -37,6 +38,7 @@ namespace std { explicit shared_ptr(T* p): boost::shared_ptr(p) {} }; }; +# endif # endif #endif