]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_index/test/test_lib.cpp
2 // Copyright (c) Antony Polukhin, 2012-2015.
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 #define TEST_LIB_SOURCE
10 #include "test_lib.hpp"
12 namespace user_defined_namespace
{
18 boost::typeindex::type_index
get_integer() {
19 return boost::typeindex::type_id
<int>();
22 boost::typeindex::type_index
get_user_defined_class() {
23 return boost::typeindex::type_id
<user_defined_namespace::user_defined
>();
26 boost::typeindex::type_index
get_const_integer() {
27 return boost::typeindex::type_id_with_cvr
<const int>();
30 boost::typeindex::type_index
get_const_user_defined_class() {
31 return boost::typeindex::type_id_with_cvr
<const user_defined_namespace::user_defined
>();
34 #ifndef BOOST_HAS_PRAGMA_DETECT_MISMATCH
36 void accept_typeindex(const boost::typeindex::type_index
&) {}