c++ - Make g++ warn on uninitialized POD member variable -


is there way print warning if forget declare in ctor initialization list member pod? i'm looking through docs , can't find anything. g++-4.4 here.

you can enable -weffc++ heap of ridiculous warnings, including every single non-ctor-initialized member.

to check actual ub, use valgrind.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -