For a class Foo, is there a way to disallow constructing it without giving it a name?
For example:
Foo(\"hi\");
And only allow it i
How about a little hack
class Foo { public: Foo (const char*) {} }; void Foo (float); int main () { Foo ("hello"); // error class Foo a("hi"); // OK return 1; }