fixes for tests

This commit is contained in:
Antony Polukhin
2018-12-16 11:30:59 +03:00
parent 7af1661709
commit 32909cb25a

View File

@ -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 <boost/type_index/ctti_type_index.hpp>
#include <boost/lexical_cast.hpp>
#include <algorithm>
#include <string>
@ -90,9 +89,18 @@ void constexpr_test() {
using namespace boost::typeindex;
BOOST_CXX14_CONSTEXPR ctti_type_index t_int0 = ctti_type_index::type_id<int>();
(void)t_int0;
BOOST_CXX14_CONSTEXPR ctti_type_index t_short0 = ctti_type_index::type_id<short>();
(void)t_short0;
BOOST_CXX14_CONSTEXPR ctti_type_index t_int1 = ctti_type_index::type_id<int>();
(void)t_int1;
BOOST_CXX14_CONSTEXPR ctti_type_index t_short1 = ctti_type_index::type_id<short>();
(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<std::string>();
BOOST_TEST(not_in_namespace);
#endif // #if !defined(_MSC_VER) || _MSC_VER >= 1916
}