From f488eed101de88ce80991d867f9b03c43a2b52b6 Mon Sep 17 00:00:00 2001 From: Cory Quammen Date: Thu, 5 Aug 2021 22:25:52 -0400 Subject: [PATCH] Resolve default constructor error in Xcode 7.2.1 and 8.2.1 Fix issue that produces the error 'default initialization of an object of const type 'const detail::buffer_size' without a user-provided default constructor' --- include/fmt/os.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 43ffd3cf..65d018e8 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -394,7 +394,9 @@ struct ostream_params { FMT_END_DETAIL_NAMESPACE -constexpr detail::buffer_size buffer_size; +// Added {} below to work around default constructor error known to +// occur in Xcode versions 7.2.1 and 8.2.1. +constexpr detail::buffer_size buffer_size{}; /** A fast output stream which is not thread-safe. */ class FMT_API ostream final : private detail::buffer {