• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14namespace boost_no_cv_specializations{
15
16template <class T>
17struct is_int
18{
19};
20
21template <>
22struct is_int<int>
23{};
24
25template <>
26struct is_int<const int>
27{};
28
29template <>
30struct is_int<volatile int>
31{};
32
33template <>
34struct is_int<const volatile int>
35{};
36
37int test()
38{
39   return 0;
40}
41
42
43}
44
45
46
47
48