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:
rich_sposato 2006-12-15 01:36:29 +00:00
parent 6eabeea489
commit 97e1fd6b59

View file

@ -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->