Skip to content

Commit

Permalink
CrowCpp#585 : Resolves issue with blueprint assignments.
Browse files Browse the repository at this point in the history
Adds static_dir_, templates_dir_, blueprints_, and mw_indices_ to the assignment.
This ensures that the Blueprint is assigned all the information.
  • Loading branch information
xia-stan committed Feb 1, 2023
1 parent a92aee4 commit 52a3caa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/crow/routing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 52a3caa

Please sign in to comment.