From 182c8f8357739f905bbd721006480502435b6b43 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 27 Nov 2022 12:04:31 -0800 Subject: Update brace style to match rest of my projects --- app/source/Cplt/Utils/Variant.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'app/source/Cplt/Utils/Variant.hpp') diff --git a/app/source/Cplt/Utils/Variant.hpp b/app/source/Cplt/Utils/Variant.hpp index df2f882..b601811 100644 --- a/app/source/Cplt/Utils/Variant.hpp +++ b/app/source/Cplt/Utils/Variant.hpp @@ -4,21 +4,18 @@ #include template -struct Overloaded : Ts... -{ +struct Overloaded : Ts... { using Ts::operator()...; }; template Overloaded(Ts...) -> Overloaded; template -struct VariantCastProxy -{ +struct VariantCastProxy { std::variant v; template - operator std::variant() const - { + operator std::variant() const { return std::visit( [](auto&& arg) -> std::variant { return arg; }, v); @@ -27,7 +24,6 @@ struct VariantCastProxy /// Use snake_case naming to align with `static_cast`, `dynamic_cast`, etc.. template -auto variant_cast(std::variant v) -> VariantCastProxy -{ +auto variant_cast(std::variant v) -> VariantCastProxy { return { std::move(v) }; } -- cgit v1.2.3-70-g09d2