removal of pointer access
This commit is contained in:
parent
77d1fb3feb
commit
84143149dd
@ -5,7 +5,7 @@
|
|||||||
// James Turk (jpt2433@rit.edu)
|
// James Turk (jpt2433@rit.edu)
|
||||||
//
|
//
|
||||||
// Version:
|
// Version:
|
||||||
// $Id: Singleton.hpp,v 1.1 2005/02/27 05:50:54 cozman Exp $
|
// $Id: Singleton.hpp,v 1.2 2005/02/27 06:27:57 cozman Exp $
|
||||||
|
|
||||||
#ifndef PHOTON_UTIL_SINGLETON_HPP
|
#ifndef PHOTON_UTIL_SINGLETON_HPP
|
||||||
#define PHOTON_UTIL_SINGLETON_HPP
|
#define PHOTON_UTIL_SINGLETON_HPP
|
||||||
@ -67,14 +67,6 @@ T& Singleton<T>::getSingleton()
|
|||||||
return *instance_;
|
return *instance_;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
|
||||||
std::auto_ptr<T> Singleton<T>::getSingletonPtr()
|
|
||||||
{
|
|
||||||
assert(instance_.get() != 0);
|
|
||||||
|
|
||||||
return instance_;
|
|
||||||
}
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
std::auto_ptr<T> Singleton<T>::instance_(0);
|
std::auto_ptr<T> Singleton<T>::instance_(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user