This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug in Header File


> I have gotten around the bug by changing the line from:
> 
> 	_Tp __s(_Tp());
> 
> to:
> 
> 	_Tp __s=_Tp();

I think this is the wrong fix in general: it uses copy-initialization
instead of direct-initialization. I think that 

       _Tp __s((_Tp()));

or

       _Tp __s((0,_Tp()));

should do the trick.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]