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.
print.hpp in vendors/XIOS/current/extern/boost/include/boost/mpl – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/mpl/print.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#ifndef BOOST_MPL_PRINT_HPP_INCLUDED
3#define BOOST_MPL_PRINT_HPP_INCLUDED
4
5// Copyright David Abrahams 2003
6// Copyright Aleksey Gurtovoy 2004
7//
8// Distributed under the Boost Software License, Version 1.0.
9// (See accompanying file LICENSE_1_0.txt or copy at
10// http://www.boost.org/LICENSE_1_0.txt)
11//
12// See http://www.boost.org/libs/mpl for documentation.
13
14// $Id$
15// $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
16// $Revision: 49267 $
17
18#include <boost/mpl/aux_/config/msvc.hpp>
19#include <boost/mpl/identity.hpp>
20
21namespace boost { namespace mpl {
22 
23namespace aux {
24#if defined(BOOST_MSVC)
25# pragma warning(push, 3)
26// we only want one warning from MSVC, so turn off the other one
27# pragma warning(disable: 4307)
28#elif defined(__MWERKS__)
29# pragma warn_hidevirtual on
30   struct print_base { virtual void f() {} };
31#endif
32
33#if defined(__EDG_VERSION__)
34  template <class T>
35  struct dependent_unsigned
36  {
37      static const unsigned value = 1;
38  };
39#endif
40} // namespace aux
41
42
43template <class T>
44struct print
45    : mpl::identity<T>
46#if defined(__MWERKS__)
47    , aux::print_base
48#endif
49{
50#if defined(BOOST_MSVC)
51    enum { n = sizeof(T) + -1 };
52#elif defined(__MWERKS__)
53    void f(int);
54#else
55    enum {
56        n =
57# if defined(__EDG_VERSION__)
58           aux::dependent_unsigned<T>::value > -1
59# else
60           sizeof(T) > -1
61# endif
62        };
63#endif
64};
65
66#if defined(BOOST_MSVC)
67# pragma warning(pop)
68#elif defined(__MWERKS__)
69# pragma warn_hidevirtual reset
70#endif
71
72}}
73
74#endif // BOOST_MPL_PRINT_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.