
15 Mar
2009
15 Mar
'09
5:28 p.m.
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