mirror of
https://github.com/boostorg/range.git
synced 2025-07-30 12:57:28 +02:00
Add ADL guard namespace for boost::distance(rng).
This commit is contained in:
@ -23,13 +23,18 @@
|
|||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
template< class T >
|
namespace range_distance_adl_barrier
|
||||||
inline BOOST_CXX14_CONSTEXPR BOOST_DEDUCED_TYPENAME range_difference<T>::type
|
|
||||||
distance( const T& r )
|
|
||||||
{
|
{
|
||||||
return boost::distance( boost::begin( r ), boost::end( r ) );
|
template< class T >
|
||||||
|
inline BOOST_CXX14_CONSTEXPR BOOST_DEDUCED_TYPENAME range_difference<T>::type
|
||||||
|
distance( const T& r )
|
||||||
|
{
|
||||||
|
return boost::iterators::distance( boost::begin( r ), boost::end( r ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using namespace range_distance_adl_barrier;
|
||||||
|
|
||||||
} // namespace 'boost'
|
} // namespace 'boost'
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user