Commit 047ad081 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

PropertyPtr: clarify public interface by only exposing the necessary shared_ptr methods (cf #10)

parent 56777c36
Pipeline #8716 passed with stage
in 7 minutes and 15 seconds
......@@ -63,7 +63,7 @@ class ResourceManager;
template <class PropT, class HandleT>
class PropertyPtr : public ptr::shared_ptr<PropT>, public BaseProperty {
class PropertyPtr : protected ptr::shared_ptr<PropT>, public BaseProperty {
friend class ResourceManager;
......@@ -82,6 +82,10 @@ public:
/// Destructor
virtual ~PropertyPtr();
using ptr::shared_ptr<PropT>::operator*;
using ptr::shared_ptr<PropT>::operator->;
using ptr::shared_ptr<PropT>::operator bool;
virtual const std::string& name() const;
virtual void delete_element(size_t _idx);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment