]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cv_spec.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cv_spec.ipp
1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_NO_CV_SPECIALIZATIONS
9 // TITLE: template specialisations of cv-qualified types
10 // DESCRIPTION: If template specialisations for cv-qualified types
11 // conflict with a specialisation for a cv-unqualififed type.
12
13
14 namespace boost_no_cv_specializations{
15
16 template <class T>
17 struct is_int
18 {
19 };
20
21 template <>
22 struct is_int<int>
23 {};
24
25 template <>
26 struct is_int<const int>
27 {};
28
29 template <>
30 struct is_int<volatile int>
31 {};
32
33 template <>
34 struct is_int<const volatile int>
35 {};
36
37 int test()
38 {
39 return 0;
40 }
41
42
43 }
44
45
46
47