From 2bf31b7f75a86a1d97e356f61235dae1e623a937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fukan=20=C3=87a=C4=9Fatay?= Date: Thu, 3 Mar 2016 16:27:51 +0200 Subject: [PATCH] Fixed ambiguous call to begin when using with boost library. --- Release/include/cpprest/containerstream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Release/include/cpprest/containerstream.h b/Release/include/cpprest/containerstream.h index 89ad1bff6d..12c1af2fe9 100644 --- a/Release/include/cpprest/containerstream.h +++ b/Release/include/cpprest/containerstream.h @@ -439,8 +439,8 @@ namespace Concurrency { namespace streams { size_t newPos = m_current_position + read_size; - auto readBegin = begin(m_data) + m_current_position; - auto readEnd = begin(m_data) + newPos; + auto readBegin = std::begin(m_data) + m_current_position; + auto readEnd = std::begin(m_data) + newPos; #ifdef _WIN32 // Avoid warning C4996: Use checked iterators under SECURE_SCL @@ -470,7 +470,7 @@ namespace Concurrency { namespace streams { resize_for_write(newSize); // Copy the data - std::copy(ptr, ptr + count, begin(m_data) + m_current_position); + std::copy(ptr, ptr + count, std::begin(m_data) + m_current_position); // Update write head and satisfy pending reads if any update_current_position(newSize);