]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/mpl_interop_test1.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / type_traits / test / mpl_interop_test1.cpp
1
2 // (C) Copyright John Maddock 2000.
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/type_traits/is_void.hpp>
8
9 template <class T>
10 int dispatch_test_imp(const boost::mpl::bool_<true>&)
11 {
12 return 0;
13 }
14 template <class T>
15 int dispatch_test_imp(const boost::mpl::bool_<false>&)
16 {
17 return 1;
18 }
19
20 template <class T>
21 int dispatch_test()
22 {
23 return dispatch_test_imp<T>(boost::is_void<T>());
24 }
25
26
27 int main()
28 {
29 return (dispatch_test<int>() == 1) && (dispatch_test<void>() == 0) ? 0 : 1;
30 }