summaryrefslogtreecommitdiff
path: root/boost/range/iterator_range_core.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/range/iterator_range_core.hpp')
-rw-r--r--boost/range/iterator_range_core.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/range/iterator_range_core.hpp b/boost/range/iterator_range_core.hpp
index 2fbeb686e2..a9e9fc0f13 100644
--- a/boost/range/iterator_range_core.hpp
+++ b/boost/range/iterator_range_core.hpp
@@ -66,13 +66,13 @@ namespace boost
template< class ForwardRange >
static IteratorT adl_begin( ForwardRange& r )
{
- return static_cast<IteratorT>( boost::begin( r ) );
+ return IteratorT( boost::begin( r ) );
}
template< class ForwardRange >
static IteratorT adl_end( ForwardRange& r )
{
- return static_cast<IteratorT>( boost::end( r ) );
+ return IteratorT( boost::end( r ) );
}
};