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 {