// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institute for Open Communication Systems (FOKUS)
-// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
/** \file
\brief intrusive_refcount public header */
-#ifndef HH_intrusive_refcount_
-#define HH_intrusive_refcount_ 1
+#ifndef HH_SENF_Utils_intrusive_refcount_
+#define HH_SENF_Utils_intrusive_refcount_ 1
// Custom includes
#include <boost/utility.hpp>
private:
refcount_t refcount_;
+ template <class S> void intrusive_ptr_add_ref();
+ template <class S> void intrusive_ptr_release();
+
+ template <class S>
+ friend void senf::intrusive_ptr_add_ref(intrusive_refcount_t<S> const * p);
+ template <class S>
+ friend void senf::intrusive_ptr_release(intrusive_refcount_t<S> const * p);
};
/** \brief Customizable reference count mixin for intrusive_ptr
{
protected:
intrusive_refcount_t();
-
- private:
- void intrusive_ptr_add_ref();
- void intrusive_ptr_release();
-
- template <class S>
- friend void senf::intrusive_ptr_add_ref(intrusive_refcount_t<S> * p);
- template <class S>
- friend void senf::intrusive_ptr_release(intrusive_refcount_t<S> * p);
};
/** \brief Reference count mixin for intrusive_ptr
};
template <class Self>
- void intrusive_ptr_add_ref(intrusive_refcount_t<Self> * p);
+ void intrusive_ptr_add_ref(intrusive_refcount_t<Self> const * p);
template <class Self>
- void intrusive_ptr_release(intrusive_refcount_t<Self> * p);
+ void intrusive_ptr_release(intrusive_refcount_t<Self> const * p);
}