-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
MSVC2017, 15.5 new issues. #857
Comments
Related: #856 |
if you aren't going to make the changes MS suggest for reasons of other-compiler compatibility, then at least add the #define the error suggests to suppress the warning. |
What is Microsoft suggesting? I am not using MSVC myself, so I am surprised that existing code would break with a new MSVC version. |
#define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING if you wanted to add #if _MSC_VER >= 1912 around that too, it might help readers to understand when/if/what it's for. |
Is this relevant unless you choose C++17 as standard? Did you try whether the code of #856 still exhibits these warnings? |
I am compiling with C++17, i imagine a lot of people now do. after adding i don't see a reason not to add this #define, it's clearly something that will need to be addressed eventually. it breaks builds without it. it's a C++17 issue, not a MS specific one, it's just co-incidence the first compiler to deprecate it is the MS one. By adding this define i don't think you are hiding a bug, just a valid deprecation warning. |
If I understand correctly, #856 is addressing these warnings by solving them instead of defining away the deprecation warnings. |
I think it is attempting that, but if that fails to work because it's introducing features only supported in C++17 then that would break your C++11 support?! Aren't you trying to support C++11 still? are the proposed std::allocator_traits a supported C++11 feature?! if the patch can not be applied because of breaking changes, then the #define _SILENCE_CXX17_OLD_ALLOC.. would allow the old code to continue to work, AND allow modern compilation to succeed. |
Seems like it's a C++11 feature: http://en.cppreference.com/w/cpp/memory/allocator_traits |
(#856 is merged, so could someone check the develop branch with MSVC2017?) |
I can confirm that #856 fixes the following warning in Visual Studio 2017 version 15.5:
I get a couple of these with v2.1.1, but the |
Thanks a lot! |
yesterday 2017.12.05 using MSVC2017, 15.4.4 was compiling v.2.1.1 fine.
today, upgraded to MSVC2017 15.5.. now v2.1.1 has lots of std::allocator warnings/errors.
The text was updated successfully, but these errors were encountered: