]> git.lyx.org Git - lyx.git/blob - boost/boost/mpl/void.hpp
complie fix
[lyx.git] / boost / boost / mpl / void.hpp
1 //-----------------------------------------------------------------------------
2 // boost mpl/void.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
5 //
6 // Copyright (c) 2001-02
7 // Peter Dimov, Aleksey Gurtovoy
8 //
9 // Permission to use, copy, modify, distribute and sell this software
10 // and its documentation for any purpose is hereby granted without fee, 
11 // provided that the above copyright notice appears in all copies and 
12 // that both the copyright notice and this permission notice appear in 
13 // supporting documentation. No representations are made about the 
14 // suitability of this software for any purpose. It is provided "as is" 
15 // without express or implied warranty.
16
17 #ifndef BOOST_MPL_VOID_HPP_INCLUDED
18 #define BOOST_MPL_VOID_HPP_INCLUDED
19
20 #include "boost/mpl/bool_c.hpp"
21 #include "boost/config.hpp"
22
23 namespace boost {
24 namespace mpl {
25
26 struct void_;
27
28 template< typename T >
29 struct is_void_
30     : false_c
31 {
32 #if defined(BOOST_MSVC) && BOOST_MSVC < 1300
33     using false_c::value;
34 #endif
35 };
36
37 template<>
38 struct is_void_<void_>
39     : true_c
40 {
41 #if defined(BOOST_MSVC) && BOOST_MSVC < 1300
42     using true_c::value;
43 #endif
44 };
45
46 } // namespace mpl
47 } // namespace boost
48
49 #endif // BOOST_MPL_VOID_HPP_INCLUDED