New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
add_volatile.hpp in vendors/XIOS/current/extern/boost/include/boost/type_traits – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/type_traits/add_volatile.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1
2//  (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
3//  Hinnant & John Maddock 2000.
4//  Use, modification and distribution are subject to the Boost Software License,
5//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6//  http://www.boost.org/LICENSE_1_0.txt).
7//
8//  See http://www.boost.org/libs/type_traits for most recent version including documentation.
9
10#ifndef BOOST_TT_ADD_VOLATILE_HPP_INCLUDED
11#define BOOST_TT_ADD_VOLATILE_HPP_INCLUDED
12
13#include <boost/config.hpp>
14
15// should be the last #include
16#include <boost/type_traits/detail/type_trait_def.hpp>
17
18namespace boost {
19
20// * convert a type T to volatile type - add_volatile<T>
21// this is not required since the result is always
22// the same as "T volatile", but it does suppress warnings
23// from some compilers:
24
25#if defined(BOOST_MSVC)
26// This bogus warning will appear when add_volatile is applied to a
27// const volatile reference because we can't detect const volatile
28// references with MSVC6.
29#   pragma warning(push)
30#   pragma warning(disable:4181) // warning C4181: qualifier applied to reference type ignored
31#endif
32
33BOOST_TT_AUX_TYPE_TRAIT_DEF1(add_volatile,T,T volatile)
34
35#if defined(BOOST_MSVC)
36#   pragma warning(pop)
37#endif
38
39#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
40BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,add_volatile,T&,T&)
41#endif
42
43} // namespace boost
44
45#include <boost/type_traits/detail/type_trait_undef.hpp>
46
47#endif // BOOST_TT_ADD_VOLATILE_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.