-
Notifications
You must be signed in to change notification settings - Fork 83
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
Missing traits for std::vector<bool> #54
Comments
That's strange, we do CI builds on macOS, and my main development platform is macOS, and usually everything works. Which compiler and C++ library are you using? Are you actually cross-compiling? |
We use Clang 7.0.1 together with cmake-ts on Linux to crosscompile our native node addons for Windows, Linux and Mac. |
We do CI builds with Clang 7, so it shouldn't be the compiler. Are you using |
The offending line was
where
Full error log: My first workaround attempt was a helper function
Which does not work too Changing to
doesn't work either
Finally
So I'd say there are some serious issues with const-refs to |
So the issue is that there is no |
@ColinH see my updated comment #54 (comment) |
In the first work-around, try |
I'm sure this would work. However, I'm more concerned by the fact, that the OSX Actually nlohmann/json had the same problem, see nlohmann/json#494 |
That's not broken, |
What's missing is a specialisation of the traits for |
I know of the peculiarities of |
That is somewhat surprising. |
Is that macOS vs Linux or is it libstdc++ vs libc++?
… On 16. Jul 2019, at 13:26, Dr. Colin Hirsch ***@***.***> wrote:
That is somewhat surprising.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@robinchrist Can you please test whether the latest commit fixes the issue? |
@ColinH Sure, will report back ASAP |
@ColinH CI build works fine! |
Great. Did you see which library you are using on the different platforms? |
As far as I know it's libstdc++ for linux and standard CRT for Windows |
Hi,
We do crossbuilds for OSX and I stumbled upon a few issues.
I'll provide details later, but they are all related to the usage of
std::vector<bool>
and type traits not working.This is most probably an OSX SDK issue though, but I think we might find a generic solution, because this could happen with different implementations too.
The text was updated successfully, but these errors were encountered: