From 013d1e396f1e6b38b74cecbc25bb65c0aaf15599 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 19 Jun 2024 01:45:58 +0900 Subject: [PATCH] feat: use brace init in ctor for raw values --- include/toml11/fwd/format_fwd.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/toml11/fwd/format_fwd.hpp b/include/toml11/fwd/format_fwd.hpp index 937e841..2b6fcf6 100644 --- a/include/toml11/fwd/format_fwd.hpp +++ b/include/toml11/fwd/format_fwd.hpp @@ -232,12 +232,12 @@ struct value_with_format value_with_format& operator=(value_with_format&&) = default; 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 value_with_format(value_with_format other) - : value(std::move(other.value)), format(std::move(other.format)) + : value{std::move(other.value)}, format{std::move(other.format)} {} value_type value;