Remove mp_defer_if_valid; add mp_identity_t.

This commit is contained in:
Peter Dimov
2015-07-26 17:43:00 +03:00
parent bd9e5f9c41
commit e51ed6cf3d
5 changed files with 39 additions and 35 deletions

View File

@@ -22,5 +22,12 @@ int main()
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<int const[]>::type, int const[]>));
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<X>::type, X>));
using boost::mp_identity_t;
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity_t<void const volatile>, void const volatile>));
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity_t<void()>, void()>));
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity_t<int const[]>, int const[]>));
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity_t<X>, X>));
return boost::report_errors();
}