mirror of
https://github.com/boostorg/thread.git
synced 2026-02-13 00:42:09 +00:00
thread: physical_concurrency - avoid c++03-style vector::data
[SVN r86226]
This commit is contained in:
@@ -427,7 +427,7 @@ namespace boost
|
||||
return 0;
|
||||
|
||||
std::vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> 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);
|
||||
|
||||
Reference in New Issue
Block a user