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'
This commit is contained in:
Cory Quammen 2021-08-05 22:25:52 -04:00 committed by Victor Zverovich
parent 652c3653bb
commit f488eed101

View File

@ -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<char> {