id summary reporter owner description type status milestone component version severity resolution keywords cc 6121 Error: static_cast used instead of const_cast Antony Polukhin Neil Groves "{{{ /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp: In static member function ‘static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_begin(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = unsigned char*]’: /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp:186:76: instantiated from ‘boost::iterator_range::iterator_range(const Range&) [with Range = boost::iterator_range, IteratorT = unsigned char*]’ ../../../../margot/applications/index24/xsd_lazy_types_string_t.hpp:49:17: instantiated from here /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp:56:66: error: invalid static_cast from type ‘boost::range_iterator >::type {aka const unsigned char*}’ to type ‘unsigned char*’ /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp: In static member function ‘static IteratorT boost::iterator_range_detail::iterator_range_impl::adl_end(ForwardRange&) [with ForwardRange = const boost::iterator_range, IteratorT = unsigned char*]’: /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp:186:76: instantiated from ‘boost::iterator_range::iterator_range(const Range&) [with Range = boost::iterator_range, IteratorT = unsigned char*]’ ../../../../margot/applications/index24/xsd_lazy_types_string_t.hpp:49:17: instantiated from here /home/cc/downloads/boost_1_48_0_beta1/include/boost/range/iterator_range_core.hpp:62:64: error: invalid static_cast from type ‘boost::range_iterator >::type {aka const unsigned char*}’ to type ‘unsigned char*’ make: *** [../../../../margot/database/berkeleydb/bdb_database_indices.o] Error 1 }}} Looks like there must be a const_cast instead of static_cast.[[BR]] Code compiled and worked correctly in boost 1.46.1" Bugs closed To Be Determined range Boost Release Branch Regression invalid