class Foo
{
private:
Foo(int){};
public:
static void foo();
};
void Foo::foo()
{
//Foo f1; //illegal
Foo f2(1); //legal
}
int main()
{
}
Y2xhc3MgRm9vCnsgCiBwcml2YXRlOgogICAgRm9vKGludCl7fTsKCiAgcHVibGljOgogICAgc3RhdGljIHZvaWQgZm9vKCk7Cn07Cgp2b2lkIEZvbzo6Zm9vKCkKewogICAvL0ZvbyBmMTsgICAgLy9pbGxlZ2FsCiAgIEZvbyBmMigxKTsgLy9sZWdhbAp9CgppbnQgbWFpbigpCnsKICAgIAp9