From 52a3caa09c91bc7aa33e833034a637e98f4b4b32 Mon Sep 17 00:00:00 2001 From: "S. V. Paulauskas" Date: Wed, 1 Feb 2023 08:41:12 -0500 Subject: [PATCH] CrowCpp/Crow#585 : Resolves issue with blueprint assignments. Adds static_dir_, templates_dir_, blueprints_, and mw_indices_ to the assignment. This ensures that the Blueprint is assigned all the information. --- include/crow/routing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/crow/routing.h b/include/crow/routing.h index 295ce453b..fe05ce9c8 100644 --- a/include/crow/routing.h +++ b/include/crow/routing.h @@ -1122,8 +1122,12 @@ namespace crow Blueprint& operator=(Blueprint&& value) noexcept { prefix_ = std::move(value.prefix_); + static_dir_ = std::move(value.static_dir_); + templates_dir_ = std::move(value.templates_dir_); all_rules_ = std::move(value.all_rules_); catchall_rule_ = std::move(value.catchall_rule_); + blueprints_ = std::move(value.blueprints_); + mw_indices_ = std::move(value.mw_indices_); return *this; }