2 // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
3 // Hinnant & John Maddock 2000. Permission to copy, use, modify,
4 // sell and distribute this software is granted provided this
5 // copyright notice appears in all copies. This software is provided
6 // "as is" without express or implied warranty, and with no claim as
7 // to its suitability for any purpose.
9 // See http://www.boost.org for most recent version including documentation.
11 #ifndef BOOST_TT_ADD_VOLATILE_HPP_INCLUDED
12 #define BOOST_TT_ADD_VOLATILE_HPP_INCLUDED
14 #include "boost/config.hpp"
16 // should be the last #include
17 #include "boost/type_traits/detail/type_trait_def.hpp"
21 // * convert a type T to volatile type - add_volatile<T>
22 // this is not required since the result is always
23 // the same as "T volatile", but it does suppress warnings
24 // from some compilers:
26 #if defined(BOOST_MSVC)
27 // This bogus warning will appear when add_volatile is applied to a
28 // const volatile reference because we can't detect const volatile
29 // references with MSVC6.
30 # pragma warning(push)
31 # pragma warning(disable:4181) // warning C4181: qualifier applied to reference type ignored
34 BOOST_TT_AUX_TYPE_TRAIT_DEF1(add_volatile,T,T volatile)
36 #if defined(BOOST_MSVC)
40 #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
41 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,add_volatile,T&,T&)
46 #include "boost/type_traits/detail/type_trait_undef.hpp"
48 #endif // BOOST_TT_ADD_VOLATILE_HPP_INCLUDED