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

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 {
public:
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);
......
Markdown is supported
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