------- Comment #1 from jwakely dot gcc at gmail dot com 2010-05-07 08:49 ------- this seems like a good candidate for using template specialisation to alter the behaviour
I think the warning is still useful for templates, since it warns you of a potential mistake in your logic. It doesn't make sense to have a template that can handle unsigned integers with negative values so I want to be warned if I write such code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44021