Closed gjasny closed 7 years ago
The ticket says the problem is specific to VS2012, yet the preprocessor check does not reflect that.
Also, are you using Windows SDK that comes with the compiler?
I does not have anything to do with VS version, just the _WIN32_WINNT
setting matters. I created the simple test case with VS2013:
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
When I change the value from Win2000 / 0x0500 to XP / 0x0501 the error vanished. You can see in the Windows SDK that the function signature for CryptReleaseContext
changes between 2000 and XP. So my patch just reflects that in the Boost winapi header as well.
Thank you for taking care. I guess you did not image going down that rabbit hole 👍
See #11896.