Use default move constructor (#2288)

This is identical to the explicit one.
This commit is contained in:
Andrew Gaul 2023-08-22 23:14:09 +09:00 committed by GitHub
parent a568aa70fd
commit 981e97ee76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

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