os/ossrv/ossrv_pub/boost_apis/boost/mpl/print.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/print.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,74 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_PRINT_HPP_INCLUDED
     1.6 +#define BOOST_MPL_PRINT_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright David Abrahams 2003
     1.9 +// Copyright Aleksey Gurtovoy 2004
    1.10 +//
    1.11 +// Distributed under the Boost Software License, Version 1.0. 
    1.12 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.13 +// http://www.boost.org/LICENSE_1_0.txt)
    1.14 +//
    1.15 +// See http://www.boost.org/libs/mpl for documentation.
    1.16 +
    1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/print.hpp,v $
    1.18 +// $Date: 2006/11/10 23:15:49 $
    1.19 +// $Revision: 1.2.14.1 $
    1.20 +
    1.21 +#include <boost/mpl/aux_/config/msvc.hpp>
    1.22 +#include <boost/mpl/identity.hpp>
    1.23 +
    1.24 +namespace boost { namespace mpl {
    1.25 +  
    1.26 +namespace aux {
    1.27 +#if defined(BOOST_MSVC)
    1.28 +# pragma warning(push, 3)
    1.29 +// we only want one warning from MSVC, so turn off the other one
    1.30 +# pragma warning(disable: 4307)
    1.31 +#elif defined(__MWERKS__)
    1.32 +# pragma warn_hidevirtual on
    1.33 +   struct print_base { virtual void f() {} };
    1.34 +#endif
    1.35 +
    1.36 +#if defined(__EDG_VERSION__)
    1.37 +  template <class T>
    1.38 +  struct dependent_unsigned
    1.39 +  {
    1.40 +      static const unsigned value = 1;
    1.41 +  };
    1.42 +#endif
    1.43 +} // namespace aux 
    1.44 +
    1.45 +
    1.46 +template <class T>
    1.47 +struct print
    1.48 +    : mpl::identity<T>
    1.49 +#if defined(__MWERKS__)
    1.50 +    , aux::print_base
    1.51 +#endif 
    1.52 +{
    1.53 +#if defined(BOOST_MSVC)
    1.54 +    enum { n = sizeof(T) + -1 };
    1.55 +#elif defined(__MWERKS__)
    1.56 +    void f(int);
    1.57 +#else 
    1.58 +    enum {
    1.59 +        n =
    1.60 +# if defined(__EDG_VERSION__)
    1.61 +           aux::dependent_unsigned<T>::value > -1
    1.62 +# else 
    1.63 +           sizeof(T) > -1
    1.64 +# endif 
    1.65 +        };
    1.66 +#endif 
    1.67 +};
    1.68 +
    1.69 +#if defined(BOOST_MSVC)
    1.70 +# pragma warning(pop)
    1.71 +#elif defined(__MWERKS__)
    1.72 +# pragma warn_hidevirtual reset
    1.73 +#endif
    1.74 +
    1.75 +}}
    1.76 +
    1.77 +#endif // BOOST_MPL_PRINT_HPP_INCLUDED