gcc: specialization only in the correct namespace, thx to Sam Miller

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@608 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-03-15 08:47:19 +00:00
parent 60ef3a12e2
commit 2dd3452a84
2 changed files with 29 additions and 16 deletions

View file

@ -21,13 +21,17 @@ typedef Loki::SingletonHolder<Foo> FooSingleton;
LOKI_SINGLETON_INSTANCE_DEFINITION(FooSingleton)
/*
// code generated by the macro:
Foo& Loki::Singleton<Foo>::Instance()
{
return FooSingleton::Instance();
};
namespace Loki
{
template<>
FooSingleton::ObjectType& Singleton<FooSingleton::ObjectType>::Instance()
{
return FooSingleton::Instance();
}
}
*/
template<>
Foo& Singleton<Foo>::Instance()
{