forked from boostorg/detail
Add some tests
Test classes which I'm going to remove the MPL dependency from: blank, allocator_utilities, is_xxx and reference_content. I'm also going to change indirect_traits, but that's tested in the python module.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
// Copyright 2018 Daniel James.
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/detail/reference_content.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
BOOST_STATIC_ASSERT((boost::is_same<int, boost::detail::make_reference_content<int>::type>::value));
|
||||
BOOST_STATIC_ASSERT((boost::is_same<boost::detail::reference_content<int&>, boost::detail::make_reference_content<int&>::type>::value));
|
||||
BOOST_STATIC_ASSERT((boost::is_same<int, boost::detail::make_reference_content<>::template apply<int>::type>::value));
|
||||
BOOST_STATIC_ASSERT((boost::is_same<boost::detail::reference_content<int&>, boost::detail::make_reference_content<>::template apply<int&>::type>::value));
|
||||
BOOST_STATIC_ASSERT((boost::has_nothrow_copy<boost::detail::make_reference_content<int&>::type>::value));
|
||||
|
||||
int main() {}
|
||||
Reference in New Issue
Block a user