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 #2 from crossroads0000 at googlemail dot com  2010-05-07 11:22 -------
Having to specialize for every unsigned or signed integer types makes no sense,
depends on the standard being used (e.g. if there is a long long type or not),
and whether or not the given implementation has added additional types (which
the standard allows). Also, it would completely defeat the purpose of having
templates in the first place. So template specialization is not really a good
solution.


-- 


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]