Closed Clownacy closed 6 years ago
Out of curiosity, what version of the MSVC compiler are you using? I just discovered that up to 19.10, they are not fully c++14 compliant, and I will have to add a workaround in some code I am optimizing.
19.14.26433. I just updated to Visual Studio 15.7.5.
Then you are safe. Anyway, it if fixed locally; will close it when I push the changes.
Another possibility for max: can you edit your project to globally define NOMINMAX (in VS2015, it was Properties -> C/C++ -> Preprocessor -> append to Preprocessor Definitions).
Doing this way has the advantage that it prevents the issue from happening in the future.
Oh, didn't know about that. Yeah, that works.
In
basic_decoder.hh
, I had to add an#undef max
, so the lineSrc.ignore(std::numeric_limits<std::streamsize>::max());
would compile correctly.I also had to remove the
#elif defined(_MSC_VER)
code inslog2
inenigma.cc
because_BitScanReverse
and the uninitialised variable apparently aren't constexpr-friendly.