X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Fintrusive_refcount.hh;h=b1cb0a9d865a36bc6472890db5f7258d12c9c346;hb=fe5837b37f112fdcd379e96ce248ca5b5f8b4d98;hp=d1e156327e58627fb52b959272501bd08d2a48d9;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Utils/intrusive_refcount.hh b/senf/Utils/intrusive_refcount.hh index d1e1563..b1cb0a9 100644 --- a/senf/Utils/intrusive_refcount.hh +++ b/senf/Utils/intrusive_refcount.hh @@ -49,8 +49,8 @@ namespace senf { virtual ~intrusive_refcount_base(); - refcount_t refcount(); ///< current refcount - bool is_shared(); ///< return \c true if refcount() > 1 + refcount_t refcount() const; ///< current refcount + bool is_shared() const; ///< return \c true if refcount() > 1 protected: intrusive_refcount_base(); @@ -73,7 +73,7 @@ namespace senf { /** \brief Customizable reference count mixin for intrusive_ptr This class provides a simple internally managed refcount and supplies the boost::intrusive_ptr + href="http://www.boost.org/doc/libs/release/libs/smart_ptr/intrusive_ptr.html">boost::intrusive_ptr required interface. To make a class compatible with \c boost::intrusive_ptr, just derive publicly from intrusive_refcount_t. @@ -127,7 +127,7 @@ namespace senf { /** \brief Reference count mixin for intrusive_ptr This class provides a simple internally managed refcount and supplies the boost::intrusive_ptr + href="http://www.boost.org/doc/libs/release/libs/smart_ptr/intrusive_ptr.html">boost::intrusive_ptr required interface. To make a class compatible with \c boost::intrusive_ptr, just derive publicly from intrusive_refcount.