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:
parent
83046e76e4
commit
2b800d6146
1 changed files with 9 additions and 8 deletions
|
@ -20,6 +20,15 @@
|
||||||
typedef Loki::SingletonHolder<Foo> FooSingleton;
|
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()
|
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();
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue