[boost][range] - Resolved Trace 5162 - boost::iterator_range<T*> is unsafe.

[SVN r70852]
This commit is contained in:
Neil Groves
2011-04-02 13:05:26 +00:00
parent d490a84c8d
commit 126e6861d7
4 changed files with 33 additions and 2 deletions

View File

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