]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // common_type_test.cpp ----------------------------------------------------// |
2 | ||
3 | // Copyright 2010 Beman Dawes | |
4 | ||
5 | // Distributed under the Boost Software License, Version 1.0. | |
6 | // See http://www.boost.org/LICENSE_1_0.txt | |
7 | ||
8 | #define _CRT_SECURE_NO_WARNINGS // disable VC++ foolishness | |
9 | ||
10 | #include "test.hpp" | |
11 | #ifndef TEST_STD | |
12 | #include <boost/type_traits/common_type.hpp> | |
13 | #else | |
14 | #include <type_traits> | |
15 | #endif | |
16 | ||
17 | struct C1 { | |
18 | //~ private: | |
19 | //~ C1(); | |
20 | }; | |
21 | ||
22 | struct C2 {}; | |
23 | ||
24 | ||
25 | ||
26 | typedef tt::common_type<C1, C2>::type AC; | |
27 |