Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
CrowCpp#642 CR : use const& instead of && for subprotocols parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
KaSSaaaa committed Aug 8, 2023
1 parent 4b48a13 commit 5342dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crow/routing.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ namespace crow
return *this;
}

self_t& subprotocols(std::vector<std::string>&& subprotocols)
self_t& subprotocols(const std::vector<std::string>& subprotocols)
{
subprotocols_ = subprotocols;
return *this;
Expand Down

0 comments on commit 5342dd6

Please sign in to comment.