From b61a7423b7b02cf877c8e0b9ca9e7673d5a6b2f3 Mon Sep 17 00:00:00 2001 From: Chris Glover Date: Thu, 29 Sep 2016 22:29:10 -0400 Subject: [PATCH] Update unit test to remove shared_ptr on compilers less than C++11. --- test/type_index_runtime_cast_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/type_index_runtime_cast_test.cpp b/test/type_index_runtime_cast_test.cpp index c64222a..7296f10 100644 --- a/test/type_index_runtime_cast_test.cpp +++ b/test/type_index_runtime_cast_test.cpp @@ -249,12 +249,14 @@ void boost_shared_ptr() void std_shared_ptr() { +#if defined(__cplusplus) && (__cplusplus >= 201103L) using namespace boost::typeindex; std::shared_ptr d = std::make_shared(); std::shared_ptr b = d; std::shared_ptr d2 = runtime_pointer_cast(b); BOOST_TEST_NE(d2, std::shared_ptr()); BOOST_TEST_EQ(d2->name, "single_derived"); +#endif } int main() {