diff --git a/src/config/Param.hxx b/src/config/Param.hxx index 29338dd69..2b03caf2f 100644 --- a/src/config/Param.hxx +++ b/src/config/Param.hxx @@ -47,9 +47,10 @@ struct ConfigParam { explicit ConfigParam(int _line=-1) :line(_line) {} + template gcc_nonnull_all - explicit ConfigParam(const char *_value, int _line=-1) noexcept - :value(_value), line(_line) {} + explicit ConfigParam(V &&_value, int _line=-1) noexcept + :value(std::forward(_value)), line(_line) {} ConfigParam(const ConfigParam &) = delete;