Use default move constructor

This is identical to the explicit one.
This commit is contained in:
Andrew Gaul 2023-08-21 16:17:10 +09:00 committed by Andrew Gaul
parent 218adcb29b
commit 72a3ceff2e

View File

@ -44,12 +44,7 @@ struct add_header{
} }
add_header(const add_header&) = delete; add_header(const add_header&) = delete;
add_header(add_header&& val) add_header(add_header&& val) = default;
: pregex(std::move(val.pregex))
, basestring(std::move(val.basestring))
, headkey(std::move(val.headkey))
, headvalue(std::move(val.headvalue))
{}
add_header& operator=(const add_header&) = delete; add_header& operator=(const add_header&) = delete;
add_header& operator=(add_header&&) = delete; add_header& operator=(add_header&&) = delete;