------- Comment #14 from gdr at cs dot tamu dot edu 2007-01-17 00:59 ------- Subject: Re: unsigned warning in template
"manu at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | #include <cassert> | template <typename Int, Int D> | void f(Int x) { | assert(0 <= x and x <= D); | } | int main() { | f<unsigned char, 2>(5); | f<signed char, 2>(5); | } | | | We don't emit a warning when instantiated as a signed char, so everything boils | down to having an option to disable the warning, doesn't it? the logical inference escapes me. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856