C3193: __clrcall requires /clr or /ZW command line option on boost header

I'm upgrading my boost library from 1.67 to 1.71, but once I build my C++ project I get the following error C3193 on the is_function_cxx_11.hpp 102 row which is

struct is_function : public true_type {};

But I can't even turn on /clr on my project because it has a lot of dependencies as unmanaged code with other projects.

Is there any workaround this problem.? Or I'm supposed to just stay on the 1.67 v at this point?

1

1 Answer

I added the below in my code before including boost/filesystem..

#ifdef __CLR_VER
#undef __CLR_VER
#endif

I don't understand this much but I think it just invoked the clr for that particular code file.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like