diff --git a/test/compile-test.cc b/test/compile-test.cc index 2be2b884..fbcbfbaf 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -27,12 +27,11 @@ TEST(IteratorTest, TruncatingIterator) { EXPECT_EQ(it.base(), p + 1); } - TEST(IteratorTest, TruncatingIteratorDefaultConstruct) { - static_assert( - std::is_default_constructible>::value, - ""); - + static_assert(std::is_default_constructible< + fmt::detail::truncating_iterator>::value, + ""); + fmt::detail::truncating_iterator it; EXPECT_EQ(nullptr, it.base()); EXPECT_EQ(std::size_t{0}, it.count()); @@ -40,8 +39,8 @@ TEST(IteratorTest, TruncatingIteratorDefaultConstruct) { #ifdef __cpp_lib_ranges TEST(IteratorTest, TruncatingIteratorOutputIterator) { - static_assert(std::output_iterator, - char>); + static_assert( + std::output_iterator, char>); } #endif