File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2212,7 +2212,7 @@ interface (widget.h)
2212
2212
void draw(); // public API that will be forwarded to the implementation
2213
2213
widget(int); // defined in the implementation file
2214
2214
~widget(); // defined in the implementation file, where impl is a complete type
2215
- widget(widget&&) = default;
2215
+ widget(widget&&); // defined in the implementation file
2216
2216
widget(const widget&) = delete;
2217
2217
widget& operator=(widget&&); // defined in the implementation file
2218
2218
widget& operator=(const widget&) = delete;
@@ -2229,6 +2229,7 @@ implementation (widget.cpp)
2229
2229
};
2230
2230
void widget::draw() { pimpl->draw(*this); }
2231
2231
widget::widget(int n) : pimpl{std::make_unique<impl>(n)} {}
2232
+ widget::widget(widget&&) = default;
2232
2233
widget::~widget() = default;
2233
2234
widget& widget::operator=(widget&&) = default;
2234
2235
You can’t perform that action at this time.
0 commit comments