2
0
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:
Tim Blechmann
2013-10-10 14:53:37 +00:00
parent ae831efe08
commit 7756df2ce0

View File

@@ -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);