Skip to content

Commit df2d3d8

Browse files
committed
After further discussion, remove all the default assignment operators.
If you specify an assignment operator (even if default) you should also be specifying a copy constructor. We haven't done the latter, so should just leave as rule-of-zero. Signed-off-by: jlait <jlait@andorra.sidefx.com>
1 parent 001457b commit df2d3d8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nanovdb/nanovdb/util/GridStats.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class Extrema<VecT, 1>
131131
, vector(v)
132132
{
133133
}
134-
Pair& operator=(const Pair&) = default;
135134
bool operator<(const Pair& rhs) const { return scalar < rhs.scalar; }
136135
} mMin, mMax;
137136
Extrema& add(const Pair& p)
@@ -162,7 +161,6 @@ class Extrema<VecT, 1>
162161
, mMax(b)
163162
{
164163
}
165-
Extrema& operator=(const Extrema&) = default;
166164
Extrema& min(const VecT& v)
167165
{
168166
Pair tmp(v);

0 commit comments

Comments
 (0)