Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve default constructor error in Xcode 7.2.1 and 8.2.1 #2447

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

cquammen
Copy link
Contributor

@cquammen cquammen commented Aug 6, 2021

Fix issue that produces the error 'default initialization of an object
of const type 'const detail::buffer_size' without a user-provided
default constructor'

@cquammen
Copy link
Contributor Author

cquammen commented Aug 6, 2021

cc @mathstuf

@sergiud
Copy link
Contributor

sergiud commented Aug 6, 2021

#2291

@seanm
Copy link
Contributor

seanm commented Aug 6, 2021

I've confirmed adding the {} fixes the issue with both macOS 10.11 + Xcode 8.2.1 (8C1002) and macOS 10.10 + Xcode 7.2.1 (7C1002).

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a PR!

include/fmt/os.h Show resolved Hide resolved
Fix issue that produces the error 'default initialization of an object
of const type 'const detail::buffer_size' without a user-provided
default constructor'
@cquammen cquammen force-pushed the constexpr-buffer-size-fix branch from 278a828 to e220093 Compare August 6, 2021 17:30
@vitaut vitaut merged commit f488eed into fmtlib:master Aug 6, 2021
@cquammen
Copy link
Contributor Author

cquammen commented Aug 6, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants