/* Copyright 2020 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #include #include #include template struct A1 { typedef T value_type; template struct rebind { typedef A1 other; }; }; template struct A2 { typedef T value_type; }; int main() { BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::allocator_rebind, bool>::type>)); BOOST_TEST_TRAIT_TRUE((boost::core::is_same, boost::allocator_rebind, int>::type>)); return boost::report_errors(); }