2 #ifndef BOOST_MPL_PRINT_HPP_INCLUDED
\r
3 #define BOOST_MPL_PRINT_HPP_INCLUDED
\r
5 // Copyright David Abrahams 2003
\r
6 // Copyright Aleksey Gurtovoy 2004
\r
8 // Distributed under the Boost Software License, Version 1.0.
\r
9 // (See accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/mpl for documentation.
\r
14 // $Id: print.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
16 // $Revision: 49267 $
\r
18 #include <boost/mpl/aux_/config/msvc.hpp>
\r
19 #include <boost/mpl/identity.hpp>
\r
21 namespace boost { namespace mpl {
\r
24 #if defined(BOOST_MSVC)
\r
25 # pragma warning(push, 3)
\r
26 // we only want one warning from MSVC, so turn off the other one
\r
27 # pragma warning(disable: 4307)
\r
28 #elif defined(__MWERKS__)
\r
29 # pragma warn_hidevirtual on
\r
30 struct print_base { virtual void f() {} };
\r
33 #if defined(__EDG_VERSION__)
\r
35 struct dependent_unsigned
\r
37 static const unsigned value = 1;
\r
46 #if defined(__MWERKS__)
\r
50 #if defined(BOOST_MSVC)
\r
51 enum { n = sizeof(T) + -1 };
\r
52 #elif defined(__MWERKS__)
\r
57 # if defined(__EDG_VERSION__)
\r
58 aux::dependent_unsigned<T>::value > -1
\r
66 #if defined(BOOST_MSVC)
\r
67 # pragma warning(pop)
\r
68 #elif defined(__MWERKS__)
\r
69 # pragma warn_hidevirtual reset
\r
74 #endif // BOOST_MPL_PRINT_HPP_INCLUDED
\r