-Wextra and unsigned template parameters
lopezibanez@gmail.com
lopezibanez@gmail.com
Wed May 10 08:20:00 GMT 2006
On 10/05/06, Aliesha Finkel <agfinkel@yahoo.com> wrote:
>
> template <typename T>
> struct foo {
> foo(T bar) { if (bar >= 0) bar = 1; }
> };
>
> If foo<signed type> is instantiated elsewhere then
> this check could still be useful.
>
My opinion is that since it may be instantiated as an signed type,
then warning is pointless there. Is this a bug?
More information about the Gcc
mailing list