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.
error: cannot call constructor ‘Thing::Thing’ directly [-fpermissive]
clang compiles the code without issuing an error.
No comments yet.