]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/common_type_sfinae_test.cpp
2 // Copyright Peter Dimov 2015
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.tt.org/LICENSE_1_0.txt)
8 #include "check_type.hpp"
10 # include <type_traits>
12 # include <boost/type_traits/common_type.hpp>
19 TT_TEST_BEGIN(common_type_sfinae
)
21 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
24 tt::common_type
<int, void*> tmp
;
29 tt::common_type
<X
, Y
> tmp
;
34 tt::common_type
<X
&, int const*> tmp
;
39 tt::common_type
<X
, Y
, int, void*> tmp
;