(Hopefully) clarify operator= and copy construction behaviour of the Property hierarc...
[ardour.git] / libs / pbd / pbd / property_basics.h
index 145e84abfcf04e148353dcf2ebdd11512b5f07aa..2c35c4bbc2c7994b79472a71f46dce4888f74656 100644 (file)
@@ -136,8 +136,15 @@ public:
                return _property_id == pid;
        }
 
-protected:
+protected:     
+       /* copy construction only by subclasses */
+       PropertyBase (PropertyBase const & b)
+               : _property_id (b._property_id)
+       {}
+       
+private:
        PropertyID _property_id;
+
 };
 
 }