[Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

Thiago Macieira thiago.macieira at intel.com
Wed Jul 22 21:08:46 CEST 2015

On Wednesday 22 July 2015 14:39:40 Matthew Woehlke wrote:
> (On that subject, -Werror=cast-qual also might have helped here; that's
> another one I use and would encourage. Also -Werror=return-type, which
> *EVERYONE* should use, period.)

I've fixed most -Wcast-qual errors in Qt the last 6 months. We'll also soon 
enable -Werror=cast-qual to make sure they don't creep back.

Trivia: how do you do a const_cast in C code while under -Werror=cast-qual?
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list