[Bug c++/11856] unsigned warning in template
gdr at cs dot tamu dot edu
gcc-bugzilla@gcc.gnu.org
Mon Jan 23 01:23:00 GMT 2006
------- Comment #11 from gdr at cs dot tamu dot edu 2006-01-23 01:23 -------
Subject: Re: unsigned warning in template
"gdr at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| > I see, I oversimplified the problem a bit. Here is a better example:
| > ------------------------------
| > #include <cassert>
| > template <typename Int, Int D>
| > void f(Int x) {
| > assert(0 <= x and x <= D);
| > }
|
| This kind of template tends to be common place for certain catgories
| of codes. It is annoying.
To be clear, "it" is not the template, "it" is the warning in case
there is a doubt :-)
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856
More information about the Gcc-bugs
mailing list