Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / histogram / test / detail_replace_type_test.cpp
1 // Copyright 2015-2017 Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/core/lightweight_test.hpp>
8 #include <boost/core/lightweight_test_trait.hpp>
9 #include <boost/histogram/detail/replace_type.hpp>
10 #include "std_ostream.hpp"
11
12 using namespace boost::histogram::detail;
13
14 int main() {
15
16   BOOST_TEST_TRAIT_SAME(replace_type<long, char, int>, long);
17   BOOST_TEST_TRAIT_SAME(replace_type<char, char, int>, int);
18   BOOST_TEST_TRAIT_SAME(replace_default<boost::use_default, char>, char);
19   BOOST_TEST_TRAIT_SAME(replace_default<int, char>, int);
20
21   return boost::report_errors();
22 }