diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index fdc64415..d9f5540d 100644 --- a/simgear/structure/SGSharedPtr.hxx +++ b/simgear/structure/SGSharedPtr.hxx @@ -134,6 +134,12 @@ private: friend class SGWeakPtr; }; +template +void swap(SGSharedPtr& a, SGSharedPtr& b) noexcept +{ + a.swap(b); +} + /** * Support for boost::mem_fn */