@@ -32,7 +32,12 @@ void serializeEliasFano(binary::Output& out, const OwnerSet& set);
3232OwnerSet deserializeEliasFano (binary::Input& in);
3333
3434struct OwnershipSetIterator {
35- virtual ~OwnershipSetIterator () {}
35+ OwnershipSetIterator () = default ;
36+ virtual ~OwnershipSetIterator () = default ;
37+ OwnershipSetIterator (const OwnershipSetIterator&) = delete ;
38+ OwnershipSetIterator& operator =(const OwnershipSetIterator&) = delete ;
39+ OwnershipSetIterator (OwnershipSetIterator&&) = delete ;
40+ OwnershipSetIterator& operator =(OwnershipSetIterator&&) = delete ;
3641 virtual std::pair<size_t , size_t > sizes () const = 0;
3742 virtual folly::Optional<std::pair<UsetId, SetExpr<const OwnerSet*>>>
3843 get () = 0 ;
@@ -55,7 +60,12 @@ struct OwnershipStats {
5560// Interface for reading ownership data.
5661//
5762struct Ownership {
58- virtual ~Ownership () {}
63+ Ownership () = default ;
64+ virtual ~Ownership () = default ;
65+ Ownership (const Ownership&) = delete ;
66+ Ownership& operator =(const Ownership&) = delete ;
67+ Ownership (Ownership&&) = delete ;
68+ Ownership& operator =(Ownership&&) = delete ;
5969
6070 // Iterate through all the ownership expressions
6171 virtual std::unique_ptr<OwnershipSetIterator> getSetIterator () = 0;
@@ -114,7 +124,12 @@ struct OwnershipUnit {
114124};
115125
116126struct OwnershipUnitIterator {
117- virtual ~OwnershipUnitIterator () {}
127+ OwnershipUnitIterator () = default ;
128+ virtual ~OwnershipUnitIterator () = default ;
129+ OwnershipUnitIterator (const OwnershipUnitIterator&) = delete ;
130+ OwnershipUnitIterator& operator =(const OwnershipUnitIterator&) = delete ;
131+ OwnershipUnitIterator (OwnershipUnitIterator&&) = delete ;
132+ OwnershipUnitIterator& operator =(OwnershipUnitIterator&&) = delete ;
118133
119134 // `OwnershipUnit`s are expected to be produced in strictly
120135 // ascending order of `unit`.
0 commit comments