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() {