Someone
public text v1 · immutableclass Singleton
{
public:
static Singleton& get() {static Singleton s; return s;}
private:
Singleton() {}
Singleton(const Singleton &) {}
// rest of class remains the same
};class Singleton
{
public:
static Singleton& get() {static Singleton s; return s;}
private:
Singleton() {}
Singleton(const Singleton &) {}
// rest of class remains the same
};