Fix for MSVC subrange iterator conversions.

This commit is contained in:
Neil Groves
2015-02-09 01:21:16 +00:00
parent de206a64db
commit 0b28fd043f

View File

@ -66,13 +66,13 @@ namespace boost
template< class ForwardRange > template< class ForwardRange >
static IteratorT adl_begin( ForwardRange& r ) static IteratorT adl_begin( ForwardRange& r )
{ {
return static_cast<IteratorT>( boost::begin( r ) ); return IteratorT( boost::begin( r ) );
} }
template< class ForwardRange > template< class ForwardRange >
static IteratorT adl_end( ForwardRange& r ) static IteratorT adl_end( ForwardRange& r )
{ {
return static_cast<IteratorT>( boost::end( r ) ); return IteratorT( boost::end( r ) );
} }
}; };