From 8865a42ff0fbf8d28f48cac5647f7fbe3fe4e70b Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Thu, 12 Oct 2023 11:13:00 +0200 Subject: [PATCH] Change std::same_as to std::is_same_v to maintain C++17 compatibility (Fixes #188) --- tests/test_cases.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cases.cc b/tests/test_cases.cc index 17a7289e..76c7c529 100644 --- a/tests/test_cases.cc +++ b/tests/test_cases.cc @@ -263,12 +263,12 @@ template void save_diagram(const std::filesystem::path &path, const T &diagram) { static_assert( - std::same_as || std::same_as); + std::is_same_v || std::is_same_v); std::filesystem::create_directories(path.parent_path()); std::ofstream ofs; ofs.open(path, std::ofstream::out | std::ofstream::trunc); - if constexpr (std::same_as) { + if constexpr (std::is_same_v) { ofs << std::setw(2) << diagram; } else {