Commit 81fc767e authored by Kenton Varda's avatar Kenton Varda

Fix MSVC: Work around MSVC 2015 constexpr bug.

parent 302dd170
......@@ -285,7 +285,12 @@ protected:
}
};
#if _MSC_VER < 1910
// TODO(msvc): MSVC 2015 can't initialize a constexpr's vtable correctly.
const MmapDisposer mmapDisposer = MmapDisposer();
#else
constexpr MmapDisposer mmapDisposer = MmapDisposer();
#endif
void* win32Mmap(HANDLE handle, MmapRange range, DWORD pageProtect, DWORD access) {
HANDLE mappingHandle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment