From 61dec915f2d5b2e3efad4a2363305e11e31a69b9 Mon Sep 17 00:00:00 2001 From: Carson Radtke Date: Tue, 11 Feb 2025 13:51:23 -0600 Subject: [PATCH] use std::is_same instead of is_same_v --- tests/pointers_tests.cpp | 2 +- tests/strict_notnull_tests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pointers_tests.cpp b/tests/pointers_tests.cpp index e11e7b6..c525814 100644 --- a/tests/pointers_tests.cpp +++ b/tests/pointers_tests.cpp @@ -90,7 +90,7 @@ TEST(pointers_test, swap) TEST(pointers_test, member_types) { - static_assert(std::is_same_v::element_type, int>, + static_assert(std::is_same::element_type, int>::value, "check member type: element_type"); } diff --git a/tests/strict_notnull_tests.cpp b/tests/strict_notnull_tests.cpp index e4022aa..4eb4d0b 100644 --- a/tests/strict_notnull_tests.cpp +++ b/tests/strict_notnull_tests.cpp @@ -369,7 +369,7 @@ TEST(strict_notnull_tests, TestStrictNotNull) TEST(pointers_test, member_types) { // make sure `element_type` is inherited from `gsl::not_null` - static_assert(std::is_same_v::element_type, int>, + static_assert(std::is_same::element_type, int>::value, "check member type: element_type"); }