summaryrefslogtreecommitdiff
path: root/boost/range/sub_range.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/range/sub_range.hpp')
-rw-r--r--boost/range/sub_range.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/range/sub_range.hpp b/boost/range/sub_range.hpp
index 8d5d168ce9..d1c3b99b0d 100644
--- a/boost/range/sub_range.hpp
+++ b/boost/range/sub_range.hpp
@@ -182,8 +182,8 @@ public:
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) )
sub_range(const sub_range& r)
- : base(impl::adl_begin(static_cast<const base&>(r)),
- impl::adl_end(static_cast<const base&>(r)))
+ : base(impl::adl_begin(const_cast<base&>(static_cast<const base&>(r))),
+ impl::adl_end(const_cast<base&>(static_cast<const base&>(r))))
{ }
#endif