/* Collection of code snippets by Arne Vajhøj */
/* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) */
#ifndef ORIGINAL_SINGLETON_H
#define ORIGINAL_SINGLETON_H

#include <iostream>

using namespace std;

class OriginalSingleton
{
private:
    static OriginalSingleton* instance;
    int SomeState;
    OriginalSingleton() { SomeState = 123; }
public:
    static OriginalSingleton* Instance();
    void SomeMethod() { cout << SomeState << endl; }
};

#endif
