From e55ac0288f2bcf0b8cc5ad56a75398c017198aad Mon Sep 17 00:00:00 2001 From: Mark Gillard Date: Mon, 9 May 2022 15:15:00 +0300 Subject: [PATCH] MSVC used "Emotional Damage". It's super effective! --- include/toml++/impl/array.h | 2 +- include/toml++/impl/table.h | 2 +- toml.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/toml++/impl/array.h b/include/toml++/impl/array.h index c486564..dbf2657 100644 --- a/include/toml++/impl/array.h +++ b/include/toml++/impl/array.h @@ -888,7 +888,7 @@ TOML_NAMESPACE_START static_cast(static_cast(arr)[i]) .visit( [&](auto&& elem) -#if !TOML_MSVC || TOML_MSVC >= 1932 // older MSVC thinks this is invalid syntax O_o +#if !TOML_MSVC // MSVC thinks this is invalid syntax O_o noexcept(for_each_is_nothrow_one) #endif { diff --git a/include/toml++/impl/table.h b/include/toml++/impl/table.h index ea0c5c4..d6edca9 100644 --- a/include/toml++/impl/table.h +++ b/include/toml++/impl/table.h @@ -900,7 +900,7 @@ TOML_NAMESPACE_START static_cast(*kvp.second) .visit( [&](auto&& v) -#if !TOML_MSVC || TOML_MSVC >= 1932 // older MSVC thinks this is invalid syntax O_o +#if !TOML_MSVC // MSVC thinks this is invalid syntax O_o noexcept(for_each_is_nothrow_one) #endif { diff --git a/toml.hpp b/toml.hpp index 7e07ceb..a8c7416 100644 --- a/toml.hpp +++ b/toml.hpp @@ -5650,7 +5650,7 @@ TOML_NAMESPACE_START static_cast(static_cast(arr)[i]) .visit( [&](auto&& elem) -#if !TOML_MSVC || TOML_MSVC >= 1932 // older MSVC thinks this is invalid syntax O_o +#if !TOML_MSVC // MSVC thinks this is invalid syntax O_o noexcept(for_each_is_nothrow_one) #endif { @@ -6963,7 +6963,7 @@ TOML_NAMESPACE_START static_cast(*kvp.second) .visit( [&](auto&& v) -#if !TOML_MSVC || TOML_MSVC >= 1932 // older MSVC thinks this is invalid syntax O_o +#if !TOML_MSVC // MSVC thinks this is invalid syntax O_o noexcept(for_each_is_nothrow_one) #endif {