File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,8 @@ class SideMap {
153
153
stride_ = kOrder == SideMapOrder::WidthMajor ? depth_ : width_;
154
154
}
155
155
156
- SideMap (const SideMap& other)
157
- : data_(other.data_),
158
- width_ (other.width_),
159
- depth_(other.depth_),
160
- stride_(other.stride_) {}
156
+ SideMap (const SideMap& other) = default ;
157
+ SideMap& operator =(const SideMap& other) = default ;
161
158
162
159
int width () const { return width_; }
163
160
int depth () const { return depth_; }
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ class VectorMap {
93
93
public:
94
94
VectorMap () : data_(nullptr ), size_(0 ) {}
95
95
VectorMap (Scalar* data, int size) : data_(data), size_(size) {}
96
- VectorMap (const VectorMap& other) : data_(other.data_), size_(other.size_) {}
96
+ VectorMap (const VectorMap& other) = default ;
97
+ VectorMap& operator =(const VectorMap& other) = default ;
97
98
98
99
int size () const { return size_; }
99
100
Scalar* data () const { return data_; }
You can’t perform that action at this time.
0 commit comments