MSVC used "Emotional Damage". It's super effective!

This commit is contained in:
Mark Gillard 2022-05-09 15:15:00 +03:00
parent 9e9b44dc14
commit e55ac0288f
3 changed files with 4 additions and 4 deletions

View File

@ -888,7 +888,7 @@ TOML_NAMESPACE_START
static_cast<node_ref>(static_cast<Array&&>(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<Func&&, Array&&, decltype(elem)>)
#endif
{

View File

@ -900,7 +900,7 @@ TOML_NAMESPACE_START
static_cast<node_ref>(*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<Func&&, Table&&, decltype(v)>)
#endif
{

View File

@ -5650,7 +5650,7 @@ TOML_NAMESPACE_START
static_cast<node_ref>(static_cast<Array&&>(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<Func&&, Array&&, decltype(elem)>)
#endif
{
@ -6963,7 +6963,7 @@ TOML_NAMESPACE_START
static_cast<node_ref>(*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<Func&&, Table&&, decltype(v)>)
#endif
{