From 7756df2ce0154d2339da1c286052e88dc678826f Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Thu, 10 Oct 2013 14:53:37 +0000 Subject: [PATCH] thread: physical_concurrency - avoid c++03-style vector::data [SVN r86226] --- src/win32/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);