add documenation, correct cvs keyword
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@576 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
e9a1abe64c
commit
17de92e41f
1 changed files with 15 additions and 1 deletions
|
@ -10,12 +10,26 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Header$
|
||||
|
||||
/*
|
||||
|
||||
Test for singletons in a shared libraries:
|
||||
|
||||
- there is a Foo class in Foo.dll/so
|
||||
- there is a Foo singleton object which is exported by SingletonDll.dll/so
|
||||
- the Foo singleton object is managed by a Loki::SingletonHolder typedef
|
||||
- the declaration of the Loki::SingletonHolder type is visiable only
|
||||
in singletondll.cpp
|
||||
- a client (this file) imports the singleton object from SingletonDll.dll/so
|
||||
|
||||
*/
|
||||
|
||||
#include "singletondll.h"
|
||||
#include "foo.h"
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
Foo& foo = Singleton<Foo>::Instance();
|
||||
|
|
Loading…
Add table
Reference in a new issue