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

crossroads0000 at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri May 7 11:22:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list