Moved Locker class out of LockedStorage to accomodate GCC compiler.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@791 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
6eabeea489
commit
97e1fd6b59
1 changed files with 32 additions and 32 deletions
|
@ -238,11 +238,6 @@ namespace Loki
|
||||||
/// LockedStorage which calls other functions to lock the object.
|
/// LockedStorage which calls other functions to lock the object.
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template <class T>
|
|
||||||
class LockedStorage
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class Locker
|
class Locker
|
||||||
{
|
{
|
||||||
|
@ -275,6 +270,11 @@ namespace Loki
|
||||||
T * pointee_;
|
T * pointee_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
class LockedStorage
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
typedef T* StoredType; /// the type of the pointee_ object
|
typedef T* StoredType; /// the type of the pointee_ object
|
||||||
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
||||||
typedef Locker< T > PointerType; /// type returned by operator->
|
typedef Locker< T > PointerType; /// type returned by operator->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue