-
Notifications
You must be signed in to change notification settings - Fork 82
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
Warning C4575 when compiled as a C++/CLI .Net Core project with Visual Studio 2019 v16.8 #148
Comments
Maybe __CLR_VER should be replaced with _MANAGED ? |
Fixed errors and warnings when C++/CLI projects are compiled as .NET Core (as opposed to .NET Framework). Visual C++ defines __CLR_VER and _MANAGED when compiled as .NET Framework, but Visual C++ only defines _MANAGED when compiled as .NET Core. Issue: boostorg#148
@bionicOnion - Darn. I was really hoping to avoid modifying my local copy of Boost, but, it looks like that is what I am going to have to do. |
I believe this still to be an issue with boost 1.75 |
If you include a boost header (such as boost/algorithm/string.hpp) that ultimately includes is_funcion_cxx_11.hpp in a C++/CLI .NET Core (NOT the normal .NET Framework) project, you will see a series of compiler warnings similar to the following:
type_traits/include/boost/type_traits/detail/is_function_cxx_11.hpp
Line 114 in c6c7ff1
There is no warning here if the C++/CLI project is compiled as .NET Framework instead. It looks like __CLR_VER is defined when building as .NET Framework, but not when building as .NET Core?
How to convert your C++/CLI project to build as .NET Core (instead of the normal .NET Framework):
https://docs.microsoft.com/en-us/dotnet/core/porting/cpp-cli
The text was updated successfully, but these errors were encountered: