diff --git a/tests/pointers_tests.cpp b/tests/pointers_tests.cpp index c525814..729cc5f 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::element_type, int>::value, + 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 4eb4d0b..0626d8f 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::element_type, int>::value, + static_assert(std::is_same::element_type, int*>::value, "check member type: element_type"); }