|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86226 - trunk/libs/thread/src/win32
From: tim_at_[hidden]
Date: 2013-10-10 10:53:38
Author: timblechmann
Date: 2013-10-10 10:53:37 EDT (Thu, 10 Oct 2013)
New Revision: 86226
URL: http://svn.boost.org/trac/boost/changeset/86226
Log:
thread: physical_concurrency - avoid c++03-style vector::data
Text files modified:
trunk/libs/thread/src/win32/thread.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp Thu Oct 10 05:44:35 2013 (r86225)
+++ trunk/libs/thread/src/win32/thread.cpp 2013-10-10 10:53:37 EDT (Thu, 10 Oct 2013) (r86226)
@@ -427,7 +427,7 @@
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);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk