Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix std::variant test on GCC-8.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
phprus committed Jun 28, 2022
1 parent 6a775e9 commit 30525d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/std-test.cc
Original file line number Diff line number Diff line change
@@ -5,12 +5,14 @@
//
// For the license information refer to format.h.

#include "fmt/std.h"

#include <string>

#include "gtest/gtest.h"

// Include after gtest.h because gtest.h includes <variant>.
// This may change the definitions of __cpp_lib_* macros.
#include "fmt/std.h"

TEST(std_test, path) {
#ifdef __cpp_lib_filesystem
EXPECT_EQ(fmt::format("{:8}", std::filesystem::path("foo")), "\"foo\" ");

0 comments on commit 30525d5

Please sign in to comment.