From d14755abb8f46a3e26040ad3907537c0bf4799b5 Mon Sep 17 00:00:00 2001 From: timoore Date: Wed, 15 Jul 2009 23:08:36 +0000 Subject: [PATCH] cleanup Add support for boost::mem_fn to SGSharedPtr. Remove a couple of "using" declarations from scene/model/model.hxx --- simgear/scene/model/model.hxx | 3 --- simgear/structure/SGSharedPtr.hxx | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/simgear/scene/model/model.hxx b/simgear/scene/model/model.hxx index 9f930f3e..bef5a322 100644 --- a/simgear/scene/model/model.hxx +++ b/simgear/scene/model/model.hxx @@ -15,9 +15,6 @@ #include #include -using std::vector; -using std::set; - #include #include #include diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index b99a6a8f..cbaee0f6 100644 --- a/simgear/structure/SGSharedPtr.hxx +++ b/simgear/structure/SGSharedPtr.hxx @@ -111,4 +111,12 @@ private: friend class SGWeakPtr; }; +/** + * Support for boost::mem_fn + */ +template +T* get_pointer(SGSharedPtr const & p) +{ + return p.ptr(); +} #endif -- 2.39.5