From: timoore Date: Wed, 15 Jul 2009 23:08:36 +0000 (+0000) Subject: cleanup X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d14755abb8f46a3e26040ad3907537c0bf4799b5;p=simgear.git cleanup Add support for boost::mem_fn to SGSharedPtr. Remove a couple of "using" declarations from scene/model/model.hxx --- 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