First public contribution.
2 #ifndef BOOST_MPL_PRINT_HPP_INCLUDED
3 #define BOOST_MPL_PRINT_HPP_INCLUDED
5 // Copyright David Abrahams 2003
6 // Copyright Aleksey Gurtovoy 2004
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)
12 // See http://www.boost.org/libs/mpl for documentation.
14 // $Source: /cvsroot/boost/boost/boost/mpl/print.hpp,v $
15 // $Date: 2006/11/10 23:15:49 $
16 // $Revision: 1.2.14.1 $
18 #include <boost/mpl/aux_/config/msvc.hpp>
19 #include <boost/mpl/identity.hpp>
21 namespace boost { namespace mpl {
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() {} };
33 #if defined(__EDG_VERSION__)
35 struct dependent_unsigned
37 static const unsigned value = 1;
46 #if defined(__MWERKS__)
50 #if defined(BOOST_MSVC)
51 enum { n = sizeof(T) + -1 };
52 #elif defined(__MWERKS__)
57 # if defined(__EDG_VERSION__)
58 aux::dependent_unsigned<T>::value > -1
66 #if defined(BOOST_MSVC)
68 #elif defined(__MWERKS__)
69 # pragma warn_hidevirtual reset
74 #endif // BOOST_MPL_PRINT_HPP_INCLUDED