diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 640664ef..787f1763 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -427,7 +427,7 @@ namespace boost return 0; std::vector buffer(size); - if (GetLogicalProcessorInformation(buffer.data(), &size) == FALSE) + if (GetLogicalProcessorInformation(&buffer.front(), &size) == FALSE) return 0; const size_t Elements = size / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION);