News for hackers. Stuff that matters.
Re:C++ compiler accepts explicit constructor call by monk_the_dog on Tuesday April 30, 2013 @08:49AM (#5631813)
Just for fun, I checked that code with gcc 4.6 and clang 3.2. gcc gives the error:

error: cannot call constructor ‘Thing::Thing’ directly [-fpermissive]

clang compiles the code without issuing an error.

There are no comments on this comment yet.