We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b38a1f commit 8956c97Copy full SHA for 8956c97
1 file changed
src/App.h
@@ -239,6 +239,15 @@ struct TemplatedApp {
239
});
240
}
241
242
+ TemplatedApp& operator=(const TemplatedApp&) = delete;
243
+
244
+ TemplatedApp& operator=(TemplatedApp&& other) {
245
+ std::swap(this->httpContext, other.httpContext);
246
+ std::swap(this->topicTree, other.topicTree);
247
+ std::swap(this->webSocketContextDeleters, other.webSocketContextDeleters);
248
+ std::swap(this->webSocketContexts, other.webSocketContexts);
249
+ }
250
251
bool constructorFailed() {
252
return !httpContext;
253
0 commit comments