Boost logo

Boost :

Subject: Re: [boost] [array] remove static qualifier for size(), empty() and max_size() member function
From: herve martin (hervemart1_at_[hidden])
Date: 2009-03-15 13:28:42


John Maddock wrote:

> I guess that the static qualifier for size(), empty() and max_size()
>> makes the boost::array template class unsuitable for the STL sequence
>> container interface.
>> I recommend to remove the static qualifier.
>>
>
> Why? The only way that the qualifier can be detected is by taking the
> address of the function: but the types of member functions of STL containers
> are "unknowable" according to the std already. In other words the array
> class already conforms to the container requirements IMO.
>
> John.
>

thanks for your answers and sorry about this thread. I must admit that I
have opened it a bit too hurriedly.

best regards, herve


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