feat: use brace init in ctor for raw values

This commit is contained in:
ToruNiina
2024-06-19 01:45:58 +09:00
parent 7cab13f6e5
commit 013d1e396f

View File

@@ -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;