From f4e0dc4f3a77b11bf07e6be36799525be0e5a09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 12 Sep 2014 14:27:39 +0000 Subject: [PATCH] next try, doku; refs #11 --- src/mrw/checkcxx11.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mrw/checkcxx11.hxx b/src/mrw/checkcxx11.hxx index d6fed5e..d3d7bd1 100644 --- a/src/mrw/checkcxx11.hxx +++ b/src/mrw/checkcxx11.hxx @@ -50,6 +50,7 @@ # ifdef MRW__OLD_PRE11_COMPILER # if __cplusplus<200300L +# warning emulating C++11 support using boost # include namespace std { // there is no std::shared_ptr in pre C++11 compilers, so we use the @@ -66,6 +67,8 @@ namespace std { explicit unique_ptr(T* p): auto_ptr(p) {} }; }; +# else +# warning trying standard C++11 support # endif # elsif __APPLE__ # warning you need a C++11 compliant compiler, on gcc: add -std=c++11 @@ -83,6 +86,8 @@ namespace std { explicit shared_ptr(T* p): tr1::shared_ptr(p) {} }; } +# else +# warning found C++11 support, everything is fine # endif #endif