Skip to content

Commit

Permalink
disable explicit assignment operator - implement #111
Browse files Browse the repository at this point in the history
This disables the explicit assignment operator to enforce copy
constraints.  The copy constructor is not disabled since this
interferes with root adapters.
  • Loading branch information
joequant authored and andresailer committed Feb 2, 2021
1 parent 29dfbdd commit 6b18dfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/templates/Collection.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public:
using const_iterator = const {{ class.bare_type }}CollectionIterator;

{{ class.bare_type }}Collection();
// {{ class.bare_type }}Collection(const {{ class.bare_type}}Collection& ) = delete; // deletion doesn't work w/ ROOT IO ! :-(
//{{ class.bare_type }}Collection(const {{ class.bare_type}}Collection& ) = delete; // deletion doesn't work w/ ROOT IO ! :-(
{{ class.bare_type }}Collection& operator=(const {{ class.bare_type}}Collection& ) = delete;
// {{ class.bare_type }}Collection({{ class.bare_type }}Vector* data, int collectionID);
~{{ class.bare_type }}Collection();

Expand Down

0 comments on commit 6b18dfc

Please sign in to comment.