]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/test/common_type_sfinae_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / type_traits / test / common_type_sfinae_test.cpp
CommitLineData
7c673cae
FG
1
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)
6
7c673cae
FG
7#ifdef TEST_STD
8# include <type_traits>
9#else
10# include <boost/type_traits/common_type.hpp>
11#endif
11fdf7f2
TL
12#include "test.hpp"
13#include "check_type.hpp"
7c673cae
FG
14#include <iostream>
15
16struct X {};
17struct Y {};
18
19TT_TEST_BEGIN(common_type_sfinae)
20{
21#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
22
23 {
24 tt::common_type<int, void*> tmp;
25 (void)tmp;
26 }
27
28 {
29 tt::common_type<X, Y> tmp;
30 (void)tmp;
31 }
32
33 {
34 tt::common_type<X&, int const*> tmp;
35 (void)tmp;
36 }
37
38 {
39 tt::common_type<X, Y, int, void*> tmp;
40 (void)tmp;
41 }
42
43#endif
44}
45TT_TEST_END