Possible bad warning on tr1::array initializer.

Martin Sebor sebor@roguewave.com
Wed Mar 8 22:36:00 GMT 2006


Paolo Carlini wrote:
> Smith-Rowland, Edward M wrote:
> 
>> The first two warnings seem incorrect to me.
>>  
>>
> Yes, other people agree with you. But, AFAICS, we can't do much on the 
> library side... (besides using -Wno-missing-braces ;)

IMO, this could be quite elegantly solved by implementing #pragma
warning disable (along push and pop).

Martin

> 
> I think that arguably there is a mismatch between the "philosophy" 
> underlying tr1::array (see, in particular, 6.2.2/2) and this kind of 
> warning emitted by g++. Chris knows better, anyway...
> 
> Paolo.



More information about the Libstdc++ mailing list