id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11985,range: compiler-error sub_range copy-constructor workaround for MSVC,Tobias Loew,Neil Groves,"Hi, the following code generates an error when compiled with MSVC 11 (aka VS 2012) {{{ std::vector arr; arr.push_back(42); boost::sub_range> ran = arr; boost::sub_range> ran_2 = ran; const boost::sub_range>& ran_ref = ran; boost::sub_range> ran_3 = ran_ref; }}} Error: libs\boost\boost\boost\range\iterator_range_core.hpp(69): error C2440: 'static_cast' : cannot convert from 'std::_Vector_const_iterator<_Myvec>' to 'std::_Vector_iterator<_Myvec>' the reason is a BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) ) in boost/range/sub_range.hpp at line 183 if I comment out the workaround everything compiles correct. Tobias ",Bugs,new,To Be Determined,range,Boost 1.61.0,Problem,,,