try better template friend class syntax

This commit is contained in:
Caolán McNamara 2011-09-12 23:52:07 +01:00
parent 1cf8e70f78
commit ddf93e2c09
2 changed files with 7 additions and 7 deletions

View file

@ -45,11 +45,10 @@ public:
// further request for any other language supply the resmgr of the first call.
// For the simple resmgr we have a mgr for each language ever requested).
public:
ImpSvlData():
pStoringPool(0), m_pThreadsafeRMs(NULL)
{}
private:
/// Can only construct via singleton
template<typename T, typename Unique> friend class rtl::Static;
ImpSvlData() : pStoringPool(0), m_pThreadsafeRMs(NULL) {}
~ImpSvlData();
public:

View file

@ -79,8 +79,9 @@ private:
/// This ma translates from numerical color values to names.
tColorValueToNameMap maColorValueToNameMap;
public:
/// Create a new (the only) instance of this class.
private:
/// Can only construct via singleton
template<typename T, typename Unique> friend class rtl::Static;
DGColorNameLookUp();
~DGColorNameLookUp();
};