From 5e1d1f13881050371d8c8f84dad66b50bb5119b9 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sat, 25 Sep 2021 21:43:56 +0000 Subject: [PATCH] Well that's not correct --- src/App.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.h b/src/App.h index aa5fd29..32fb084 100644 --- a/src/App.h +++ b/src/App.h @@ -163,8 +163,8 @@ public: webSocketContextDeleters = std::move(other.webSocketContextDeleters); /* Move TopicTree */ - other.topicTree = topicTree; - topicTree = nullptr; + topicTree = other.topicTree; + other.topicTree = nullptr; } TemplatedApp(SocketContextOptions options = {}) { @@ -224,7 +224,7 @@ public: /* If we don't have a TopicTree yet, create one now */ if (!topicTree) { - topicTree = new TopicTree([](Subscriber *s, TopicTreeMessage &message, auto flags) { + topicTree = new TopicTree([](Subscriber *s, TopicTreeMessage &message, TopicTree::IteratorFlags flags) { /* Subscriber's user is the socket */ /* Unfortunately we need to cast is to PerSocketData = int * since many different WebSocketContexts use the same