Boost logo

Boost :

Subject: Re: [boost] [1.48.0] Status?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-11-14 08:11:15


On Sun, Nov 13, 2011 at 4:42 AM, Antony Polukhin <antoshkka_at_[hidden]> wrote:
...> Also, there is a regression from previous versions of boost in
range library:
>
> /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<IteratorT>::adl_begin(ForwardRange&)
> [with ForwardRange = const boost::iterator_range<const unsigned
> char*>, 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<IteratorT>::iterator_range(const Range&) [with
> Range = boost::iterator_range<const unsigned char*>, 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<const
> boost::iterator_range<const unsigned char*> >::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<IteratorT>::adl_end(ForwardRange&)
> [with ForwardRange = const boost::iterator_range<const unsigned
> char*>, 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<IteratorT>::iterator_range(const Range&) [with
> Range = boost::iterator_range<const unsigned char*>, 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<const
> boost::iterator_range<const unsigned char*> >::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.
> Created ticket #6121 for this bug.
>
> Last error looks like a show-stopper for me.

I've pinged the maintainer but gotten no response.

In the current regression test report for range, almost all compilers
are passing all tests. A small number of compilers are failing one
test, but passing all others. So we are not going to hold the release
for this.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk