mirror of
https://github.com/microsoft/GSL.git
synced 2025-04-01 08:56:29 -04:00
use std::is_same instead of is_same_v
This commit is contained in:
parent
cd7e358a6b
commit
61dec915f2
@ -90,7 +90,7 @@ TEST(pointers_test, swap)
|
||||
|
||||
TEST(pointers_test, member_types)
|
||||
{
|
||||
static_assert(std::is_same_v<gsl::not_null<int>::element_type, int>,
|
||||
static_assert(std::is_same<gsl::not_null<int>::element_type, int>::value,
|
||||
"check member type: element_type");
|
||||
}
|
||||
|
||||
|
@ -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<gsl::strict_not_null<int>::element_type, int>,
|
||||
static_assert(std::is_same<gsl::strict_not_null<int>::element_type, int>::value,
|
||||
"check member type: element_type");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user