This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44021] Templates with -Wtype-limits produces warnings.
- From: "crossroads0000 at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2010 11:22:48 -0000
- Subject: [Bug c++/44021] Templates with -Wtype-limits produces warnings.
- References: <bug-44021-19144@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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