diff --git a/alib2common/src/base/CommonBase.hpp b/alib2common/src/base/CommonBase.hpp index 71aea020a2635ab285345b4be2f8a57151de1a3d..baa2cd2009386686259fcf0eb7650fed9c790d4b 100644 --- a/alib2common/src/base/CommonBase.hpp +++ b/alib2common/src/base/CommonBase.hpp @@ -179,6 +179,8 @@ namespace ext { /** * Helper for comparing everything that inherits from CommonBaseBase. + * + * \tparam T the type to compare */ template < class T > struct compare < T, typename std::enable_if < std::is_base_of < base::CommonBaseBase, typename std::decay < T >::type >::value >::type > { diff --git a/alib2common/src/base/WrapperBase.hpp b/alib2common/src/base/WrapperBase.hpp index da25651996af4e3f4151c228d8c82fe76aa881f1..56046d668a183f2d91242bdbd8d44387acf3a3bb 100644 --- a/alib2common/src/base/WrapperBase.hpp +++ b/alib2common/src/base/WrapperBase.hpp @@ -33,9 +33,16 @@ public: template < typename T > class WrapperBaseMiddle : public WrapperBaseBase { protected: + /** + * The wrapped data. + */ ext::cow_shared_ptr < T > m_data; private: + /** + * \brief + * Unifies the shared pointers. For internal use when two pointer eval equal. + */ void unify ( WrapperBaseMiddle & other ) { if ( this->m_data.getUseCount ( ) > other.m_data.getUseCount ( ) ) other.m_data = this->m_data;