2 #ifndef BOOST_MPL_AUX_IS_MSVC_ETI_ARG_HPP_INCLUDED
3 #define BOOST_MPL_AUX_IS_MSVC_ETI_ARG_HPP_INCLUDED
5 // Copyright Aleksey Gurtovoy 2001-2004
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 // See http://www.boost.org/libs/mpl for documentation.
13 // $Id: is_msvc_eti_arg.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
17 #include <boost/mpl/aux_/yes_no.hpp>
18 #include <boost/mpl/aux_/config/eti.hpp>
19 #include <boost/mpl/aux_/config/static_constant.hpp>
21 namespace boost { namespace mpl { namespace aux {
23 #if defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
25 #if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
27 template< typename T >
28 struct is_msvc_eti_arg
30 BOOST_STATIC_CONSTANT(bool, value = false);
33 #else // BOOST_MPL_CFG_MSVC_60_ETI_BUG
35 struct eti_int_convertible
37 eti_int_convertible(int);
40 template< typename T >
41 struct is_msvc_eti_arg
43 static no_tag test(...);
44 static yes_tag test(eti_int_convertible);
47 BOOST_STATIC_CONSTANT(bool, value =
48 sizeof(test(get())) == sizeof(yes_tag)
55 struct is_msvc_eti_arg<int>
57 BOOST_STATIC_CONSTANT(bool, value = true);
60 #endif // BOOST_MPL_CFG_MSVC_ETI_BUG
64 #endif // BOOST_MPL_AUX_IS_MSVC_ETI_ARG_HPP_INCLUDED