Fix use of C++17 feature

This commit is contained in:
Jason Cobb 2021-02-28 21:32:38 -05:00
parent aa17861475
commit 4b3ca4f206
No known key found for this signature in database
GPG Key ID: 2A3F6A6DCA1E8DED

View File

@ -162,7 +162,8 @@ TEST(IteratorTest, TruncatingIterator) {
TEST(IteratorTest, TruncatingIteratorDefaultConstruct) {
static_assert(
std::is_default_constructible_v<fmt::detail::truncating_iterator<char*>>);
std::is_default_constructible<fmt::detail::truncating_iterator<char*>>::value,
"");
fmt::detail::truncating_iterator<char*> it;
EXPECT_EQ(it.base(), nullptr);