Boost logo

Boost :

Subject: Re: [boost] [array] remove static qualifier for size(), empty() and max_size() member function
From: John Maddock (john_at_[hidden])
Date: 2009-03-15 12:00:59


> 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.


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