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]
Other format: [Raw text]

[Bug c++/44021] Templates with -Wtype-limits produces warnings.



------- Comment #1 from jwakely dot gcc at gmail dot com  2010-05-07 08:49 -------
this seems like a good candidate for using template specialisation to alter the
behaviour

I think the warning is still useful for templates, since it warns you of a
potential mistake in your logic.  It doesn't make sense to have a template that
can handle unsigned integers with negative values so I want to be warned if I
write such code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44021


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