mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 05:40:14 +01:00
Deprecated boost::core::is_same and the associated header.
Moved is_same implementation to detail (both directory and namespace) to use in the public headers and avoid introducing new dependencies. The documentation now recommends users to use Boost.TypeTraits or C++ standard library instead. Also, removed unnecessary includes and added missing ones in a few places.
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
#if BOOST_CXX_VERSION < 201703
|
||||
|
||||
#include <boost/iterator.hpp>
|
||||
#include <boost/core/is_same.hpp>
|
||||
#include <boost/core/lightweight_test_trait.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
/*
|
||||
|
||||
@@ -60,7 +60,7 @@ struct R
|
||||
|
||||
int main()
|
||||
{
|
||||
using boost::core::is_same;
|
||||
using boost::is_same;
|
||||
|
||||
BOOST_TEST_TRAIT_TRUE((is_same<boost::iterator<C,T,D,P,R>::iterator_category,C>));
|
||||
BOOST_TEST_TRAIT_TRUE((is_same<boost::iterator<C,T,D,P,R>::value_type,T>));
|
||||
|
||||
Reference in New Issue
Block a user