Commit 8a8f44d3 authored by Joseph Noir's avatar Joseph Noir

Address a few copy-elision warnings

parent b949cccc
...@@ -86,7 +86,7 @@ void read_uri_query(state<Iterator, Sentinel>& ps, Consumer&& consumer) { ...@@ -86,7 +86,7 @@ void read_uri_query(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
using std::swap; using std::swap;
std::string res; std::string res;
swap(str, res); swap(str, res);
return std::move(res); return res;
}; };
auto push = [&] { auto push = [&] {
result.emplace(take_str(key), take_str(value)); result.emplace(take_str(key), take_str(value));
...@@ -124,7 +124,7 @@ void read_uri(state<Iterator, Sentinel>& ps, Consumer&& consumer) { ...@@ -124,7 +124,7 @@ void read_uri(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
using std::swap; using std::swap;
std::string res; std::string res;
swap(str, res); swap(str, res);
return std::move(res); return res;
}; };
// Allowed character sets. // Allowed character sets.
auto path_char = [](char c) { auto path_char = [](char c) {
......
...@@ -610,7 +610,7 @@ public: ...@@ -610,7 +610,7 @@ public:
typename Driver::stage_ptr_type make_continuous_stage(Ts&&... xs) { typename Driver::stage_ptr_type make_continuous_stage(Ts&&... xs) {
auto ptr = detail::make_stream_stage<Driver>(this, std::forward<Ts>(xs)...); auto ptr = detail::make_stream_stage<Driver>(this, std::forward<Ts>(xs)...);
ptr->continuous(true); ptr->continuous(true);
return std::move(ptr); return ptr;
} }
template <class Init, class Fun, class Cleanup, template <class Init, class Fun, class Cleanup,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment