Boost logo

Boost :

Subject: Re: [boost] [Range] Support for array references, svn:executable on headers
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-05-13 20:55:50


On 05/13/2011 05:08 PM, Bryce Lelbach wrote:
> Boost.Range does not support array reference types. I'd like to add the
> specializations/overloads/code to Boost.Range to support array reference types
> (I have commit rights). Neil, is this alright? Does anyone see any see any
> problems with such changes?
> (some) of the places where changes are needed:
> <snip>
> One test case demonstrating the problem:
> #include <boost/range.hpp>
> #include <iostream>
> #include <typeinfo>
> int main(void) {
> std::cout << typeid(boost::range_size<char const (&)[5]>::type).name() << std::endl;
> return 0;
> }

Why do you expect this to work? range_size doesn't support
references at all. Why should a reference to an array
be special? Doesn't range_size<char const[5]> work?

> P.S. A number of the headers in Boost.Range have the svn:excecutable property.
> Can I remove this property from said headers?

Please do.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at