Simplify is_variant_like_ check, fix compile error before GCC 11 (#3072)

Co-authored-by: Vladislav Shchapov <vladislav@shchapov.ru>

Co-authored-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
NewbieOrangeandVladislav Shchapov authored and GitHub committed 2022-09-02 21:08:07 -07:00
1 parent fec5515c55
commit 29c6000137
2 files changed
+7 -6

No files matched your search

+3
View File
@@ -75,6 +75,9 @@ TEST(std_test, variant) {
EXPECT_EQ(fmt::format("{}", v4), "variant(monostate)");
EXPECT_EQ(fmt::format("{}", v5), "variant(\"yes, this is variant\")");
volatile int i = 42; // Test compile error before GCC 11 described in #3068.
EXPECT_EQ(fmt::format("{}", i), "42");
#endif
}