-
Notifications
You must be signed in to change notification settings - Fork 768
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
macOS <= 10.9: error: chosen constructor is explicit in copy-initialization #339
Comments
Sounds like whatever version of clang Apple is using there has an explicit default constructor for Replace line 227 with: auto & derivedMap = baseMap.insert( lb, {baseKey, std::map<std::type_index, std::vector<PolymorphicCaster const*>>{}} )->second; I don't have any way of easily testing this myself so if you have to play around to get this to work let me know what had to change. |
Today I also encountered this issue and after replacing the line like you suggested it worked fine. Thanks. |
I encountered the same issue with with a clang-3.8 + libc++ build on an Ubuntu Trusty machine. Are there any objections to a PR with the above fix #339 (comment)
|
I believe this was addressed here: fcef0da#commitcomment-23652411 |
I've tested the fix from develop and it works fine. I believe this issue can be closed. |
General update to 1.2.2 from HEAD to include fix for libcxx toolchain on some platforms. See: USCiLab/cereal#339 (comment)
Thanks! |
The following is a regression from cereal 1.1.2, which does not have this problem.
Full build log: https://gist.github.com/ilovezfs/43068bcbd2aaf678017fbf88f7f62d5c
When trying to build cereal 1.2.1 or the develop branch @ 1e5e648 on macOS <= 10.9 the build fails with
This does not affect macOS 10.10 or 10.11.
The text was updated successfully, but these errors were encountered: