-
Notifications
You must be signed in to change notification settings - Fork 344
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
Unable to compile with MSVC 19.11 (VS15.3 or VS2017.3) #181
Comments
Hi Egor, Are those all error messages? No static assert or anything? Can you send a minimal example that produces this or a similar error? Thanks, Roland |
Sure. :) And yes, no other static asserts or something.
|
Oh, wow! That's scary... Does it also happen if you turn off the explicit C++17 mode? Also, can you try including sqlpp11/verbatim_table.h, only? |
Oops. I've tried other modes (c++14, c++latest and no explicit) and they're broken too (with my example above). With single
|
Oh, ok, that is an actual error (missing include). Fixed it on develop. Can you pull and try again? Thanks! |
With single
|
Thanks! I am quite confident now that this is a compiler bug.
Above you see the
when specialized like this:
I still need Microsoft's team to use sqlpp11 as a unit test :-( It might be possible to create some alias template that wraps the So I do not have a good solution for this other than reporting a bug at Microsoft. Would you like to do that? |
Does this compile on your machine?
That's basically the code that produced the error message (except that the struct bodies are more complex in the real code); |
I'll file an issue there. I already prepared minimal not working example.
|
Awesome! |
According to https://connect.microsoft.com/VisualStudio/feedback/details/3139514
As I understand it will be in VS15.5. |
That's good news indeed! Thanks again for reporting it. I also talked to members of Microsoft's compiler team at CppCon. They are looking into adding sqlpp11 to their test suite. This would help a lot. |
Hi, I just learned that Microsoft regularly tests their compiler against all packages in https://github.com/Microsoft/vcpkg As am not a Windows/MSVC user, it would be awesome if somebody could take the job of adding sqlpp11. Best, Roland |
As @juandent commented here rbock/sqlpp11-connector-sqlite3#36 (comment) , VS 15.5.0 Preview 5 seems to fix the problem. Keep your fingers crossed that the actual release will do so, too :-) |
With current versions, it should be fine. Please open a new issue otherwise. |
Hi!
MS released VS 15.3 (2017.3) with first toolset update and build is broken in
/std:c++17
mode.Errors:
sqlite3 connector 0.24 + sqlpp11 develop.
The text was updated successfully, but these errors were encountered: