Add support for boost::mem_fn to SGSharedPtr.

Remove a couple of "using" declarations from scene/model/model.hxx
This commit is contained in:
timoore
2009-07-16 12:09:43 +02:00
committed by Tim Moore
parent abd4aa2e6b
commit d14755abb8
2 changed files with 8 additions and 3 deletions
-3
View File
@@ -15,9 +15,6 @@
#include <vector>
#include <set>
using std::vector;
using std::set;
#include <osg/Node>
#include <osg/Texture2D>
#include <osgDB/ReaderWriter>
+8
View File
@@ -111,4 +111,12 @@ private:
friend class SGWeakPtr;
};
/**
* Support for boost::mem_fn
*/
template<typename T>
T* get_pointer(SGSharedPtr<T> const & p)
{
return p.ptr();
}
#endif