-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Build fails on macOS 10.15: ThreadLocal.h: error: no matching constructor for initialization of 'std::function<LocalRefCount ()>'
#2266
Comments
@yfeldblum Could you please take a look? This commit has broken the build: 99767aa (Apparently the breakage is specific to P. S. There is another unfixed bug, but it shows up later in the build: #2124 |
I can confirm that reverting the said commit (with minor adjustment to the code changes) plus the fix from my PR fixes the build on Catalina.
But perhaps there can be a proper fix rather than a revert? |
We have migrated to C++17, and this uses the new C++17 language feature of syntactic/mandatory copy elision. Is the compiler here not using C++17? |
@yfeldblum I am pretty sure we do not force any C++ standard against what is set by the build system. But I need to check what compiler is picked on 10.15. gcc 14 builds this fine as-is, but it defaults to C++17 even without flags being passed explicitly. However why they aren’t? CMake has a feature to enforce C++ standard; so, for example, if MacPorts on Catalina uses a compiler which cannot handle C++17, build should fail already at configure, not during compilation. |
The text was updated successfully, but these errors were encountered: