Make fmt::appender implement std::output_iterator concept (#4093)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov
2024-07-29 21:18:20 +05:00
committed by GitHub
parent e23fb6a8b4
commit aff640c32f
3 changed files with 9 additions and 7 deletions
+1 -7
View File
@@ -93,7 +93,7 @@ TEST(string_view_test, compare) {
}
TEST(base_test, is_locking) {
EXPECT_FALSE(fmt::detail::is_locking<const char (&)[3]>());
EXPECT_FALSE(fmt::detail::is_locking<const char(&)[3]>());
}
TEST(base_test, is_output_iterator) {
@@ -116,12 +116,6 @@ TEST(base_test, is_back_insert_iterator) {
std::front_insert_iterator<std::string>>::value);
}
TEST(base_test, buffer_appender) {
#ifdef __cpp_lib_ranges
EXPECT_TRUE((std::output_iterator<fmt::appender, char>));
#endif
}
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 470
TEST(buffer_test, noncopyable) {
EXPECT_FALSE(std::is_copy_constructible<buffer<char>>::value);