News for hackers. Stuff that matters.
Re:Never trust a programmer who says he knows C++ by Todd on Tuesday March 30, 2010 @01:24AM (#1228461)
What about

  SomeComplexObject b = new SomeComplexObject()
This should probably be

  SomeComplexObject* b = new SomeComplexObject()
since the former news up an object and then invokes a copy constructor before losing the original reference and leaking.
Re:Never trust a programmer who says he knows C++ by masterj on Tuesday March 30, 2010 @01:55AM (#1228510)
It's also missing a semicolon.
Re:Never trust a programmer who says he knows C++ by wheels on Tuesday March 30, 2010 @01:32AM (#1228476)
I omitted the lines that were completely wrong, like that one. That assignment wouldn't compile at all.
Re:Never trust a programmer who says he knows C++ by Todd on Tuesday March 30, 2010 @02:51AM (#1228573)
Good points (wheels and masterj)