Skip to content

Commit

Permalink
Resolve default constructor error in Xcode 7.2.1 and 8.2.1
Browse files Browse the repository at this point in the history
Fix issue that produces the error 'default initialization of an object
of const type 'const detail::buffer_size' without a user-provided
default constructor'
  • Loading branch information
cquammen committed Aug 6, 2021
1 parent fb19faa commit e220093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit e220093

Please sign in to comment.