mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-19 03:18:09 +08:00
feat: use brace init in ctor for raw values
This commit is contained in:
@@ -232,12 +232,12 @@ struct value_with_format
|
|||||||
value_with_format& operator=(value_with_format&&) = default;
|
value_with_format& operator=(value_with_format&&) = default;
|
||||||
|
|
||||||
value_with_format(value_type v, format_type f)
|
value_with_format(value_type v, format_type f)
|
||||||
: value(std::move(v)), format(std::move(f))
|
: value{std::move(v)}, format{std::move(f)}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
value_with_format(value_with_format<U, format_type> other)
|
value_with_format(value_with_format<U, format_type> other)
|
||||||
: value(std::move(other.value)), format(std::move(other.format))
|
: value{std::move(other.value)}, format{std::move(other.format)}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
value_type value;
|
value_type value;
|
||||||
|
Reference in New Issue
Block a user