Skip to content

Commit 2e8448c

Browse files
committed
Use const ref instead of forwarding ref
Because we are not forwarding.
1 parent 570ed8c commit 2e8448c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/params.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class params_t
6767
typename K, typename V,
6868
std::enable_if_t<!std::is_arithmetic_v<std::remove_reference_t<V>>,
6969
bool> = true>
70-
void set(K &&key, V &&value)
70+
void set(K &&key, V const &value)
7171
{
7272
m_map.insert_or_assign(std::forward<K>(key), std::string(value));
7373
}

0 commit comments

Comments
 (0)