add comment about macro generated code

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@570 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-02-28 10:48:16 +00:00
parent 83046e76e4
commit 2b800d6146

View file

@ -20,6 +20,15 @@
typedef Loki::SingletonHolder<Foo> FooSingleton;
LOKI_SINGLETON_INSTANCE_DEFINITION(FooSingleton)
/*
// code generated by the macro:
Foo& Loki::Singleton<Foo>::Instance()
{
return FooSingleton::Instance();
};
*/
Foo& Singleton<Foo>::Instance()
{
@ -27,12 +36,4 @@ Foo& Singleton<Foo>::Instance()
};
LOKI_SINGLETON_INSTANCE_DEFINITION(FooSingleton)
/*
Foo& Loki::Singleton<Foo>::Instance()
{
return FooSingleton::Instance();
};
*/