blob: 7935ca534c9e60089c999fd829c0f821bb602c4b [file] [log] [blame]
//
// Copyright (c) Antony Polukhin, 2012-2014.
//
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#define TEST_LIB_SOURCE
#include "test_lib.hpp"
namespace user_defined_namespace {
class user_defined{};
}
namespace test_lib {
boost::typeindex::type_index get_integer() {
return boost::typeindex::type_id<int>();
}
boost::typeindex::type_index get_user_defined_class() {
return boost::typeindex::type_id<user_defined_namespace::user_defined>();
}
boost::typeindex::type_index get_const_integer() {
return boost::typeindex::type_id_with_cvr<const int>();
}
boost::typeindex::type_index get_const_user_defined_class() {
return boost::typeindex::type_id_with_cvr<const user_defined_namespace::user_defined>();
}
#ifndef BOOST_HAS_PRAGMA_DETECT_MISMATCH
// Just do nothing
void accept_typeindex(const boost::typeindex::type_index&) {}
#endif
}