I have a C++ library with managed C++ classes and unmanaged C++ classes, so the library is compiled with /clr support. I need to make some thread safe locking on the unmanaged side but if I include I have the compiler error:
C1189 #error: <mutex> is not supported when compiling with /clr or /clr:pure
How can I work around this? Spent a couple of hours searching but only found very old information. Using Visual Studio 2017 and C++11 language standard.