move instantiation to the source file (fixes linker error with gcc 4.0.1 on the mac), Thanks to Idar Tollefsen and Sam Miller

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@703 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-09-15 06:30:16 +00:00
parent 68a09a05be
commit f628dc7165
5 changed files with 28 additions and 18 deletions

View file

@ -14,14 +14,13 @@
/*
Test for singletons in a shared libraries:
Test for singletons with 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
- the Foo class is in the shared library Foo.dll/so
- the Foo singleton object is in another shared library: SingletonDll.dll/so
- the Foo singleton object is managed by Loki::SingletonHolder
- Loki::SingletonHolder is only used in singletondll.cpp
- the client (this file) imports the singleton object from SingletonDll.dll/so
*/