#include <stdio.h>
class Single
{
public:
Single operator=(const Single o) = delete;
static Single* GetInstance() {
return &obj;
}
int value;
private:
Single() {}
Single(Single &&o) {}
Single(Single &o) {}
~Single() {}
static Single obj;
};
Single Single::obj;
int main()
{
Single::GetInstance()->value = 1000;
printf("value %d\n", Single::GetInstance()->value);
return 0;
}