From 1e5c86eb9d639404ba1dadd06d0ddb466e7af4b3 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Tue, 26 Apr 2022 14:10:21 -0400 Subject: [PATCH] Add tests for the C++11 alias rebind --- test/pointer_traits_rebind_test.cpp | 44 ++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/test/pointer_traits_rebind_test.cpp b/test/pointer_traits_rebind_test.cpp index 999d195..a009463 100644 --- a/test/pointer_traits_rebind_test.cpp +++ b/test/pointer_traits_rebind_test.cpp @@ -1,5 +1,5 @@ /* -Copyright 2017 Glen Joseph Fernandes +Copyright 2017-2022 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. @@ -84,15 +84,49 @@ int main() BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) + BOOST_TEST_TRAIT_TRUE((boost::core::is_same::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); #endif BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); @@ -102,6 +136,14 @@ int main() boost::pointer_traits >::rebind_to::type>)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::pointer_traits >::rebind_to::type>)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); + BOOST_TEST_TRAIT_TRUE((boost::core::is_same, + boost::pointer_traits >::rebind >)); #endif return boost::report_errors(); }