X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGSharedPtr.hxx;h=f321b12dc4a3e4578b14276d2e5f74dfded32b2c;hb=c37b27a926b150bc0a63b23ccebddc6d56607bf1;hp=a494937bbaa11aef1b5dc3d41adcb43723da7db3;hpb=7e2dafdcb8ee701edfe18bcada0e4f0a27c895a0;p=simgear.git diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index a494937b..f321b12d 100644 --- a/simgear/structure/SGSharedPtr.hxx +++ b/simgear/structure/SGSharedPtr.hxx @@ -113,4 +113,12 @@ private: friend class SGWeakPtr; }; +/** + * Support for boost::mem_fn + */ +template +T* get_pointer(SGSharedPtr const & p) +{ + return p.ptr(); +} #endif