#include <iostream>
using namespace std;

class Foo {
	public:
	Foo(int i) { cout << "constructed with " << i << endl; }
};

class Bar {
	public:
		static Foo& getFoo() { return f; }
		static Foo f;
};

Foo Bar::f(4);

int main()
{
#ifdef STATICLY
	Bar::getFoo();
#else
	Bar b;
	b.getFoo();
#endif
}


