> > Is there a way to make the template generate 'T var = var;' in the
> > release case when there's no initializer? That's be a useful hack
> > to silence -Wunused-variable, -Wsometimes-uninitialized, etc. on
> > gcc and clang.
> 
> I'm not aware of any way to do that, but I am certainly not the
> cleverest C++ template guy in the room.

Can't you do

  : val(val)

in the initializer list?

Botond
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to