Monthly Archives: October 2007
Yet another way to shoot yourself in the foot with C++
Found during pair programming (yes, I do it sometimes): class Foo { public: Foo(bool in); … }; … Foo f = new Foo(true); … Yikes. Didn’t expect that to get by the compiler. But it did. Without even a warning. … Continue reading
Posted in Software
Comments Off on Yet another way to shoot yourself in the foot with C++