diff --git a/test/type_index_constexpr_test.cpp b/test/type_index_constexpr_test.cpp index f80fca7..d267fad 100644 --- a/test/type_index_constexpr_test.cpp +++ b/test/type_index_constexpr_test.cpp @@ -1,5 +1,5 @@ // -// Copyright Antony Polukhin, 2015-2016. +// Copyright Antony Polukhin, 2015-2018. // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at @@ -7,7 +7,6 @@ #include -#include #include #include @@ -90,9 +89,18 @@ void constexpr_test() { using namespace boost::typeindex; BOOST_CXX14_CONSTEXPR ctti_type_index t_int0 = ctti_type_index::type_id(); + (void)t_int0; + BOOST_CXX14_CONSTEXPR ctti_type_index t_short0 = ctti_type_index::type_id(); + (void)t_short0; + BOOST_CXX14_CONSTEXPR ctti_type_index t_int1 = ctti_type_index::type_id(); + (void)t_int1; + BOOST_CXX14_CONSTEXPR ctti_type_index t_short1 = ctti_type_index::type_id(); + (void)t_short1; + +#if !defined(_MSC_VER) || _MSC_VER >= 1916 BOOST_CXX14_CONSTEXPR bool same0 = (t_int0 == t_int1); BOOST_TEST(same0); @@ -134,6 +142,8 @@ void constexpr_test() { BOOST_CXX14_CONSTEXPR bool not_in_namespace = !is_boost_namespace(); BOOST_TEST(not_in_namespace); + +#endif // #if !defined(_MSC_VER) || _MSC_VER >= 1916 }