Skip to content

Commit 2bf31b7

Browse files
author
Doğukan Çağatay
committed
Fixed ambiguous call to begin when using with boost library.
1 parent 3070ca2 commit 2bf31b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Release/include/cpprest/containerstream.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ namespace Concurrency { namespace streams {
439439

440440
size_t newPos = m_current_position + read_size;
441441

442-
auto readBegin = begin(m_data) + m_current_position;
443-
auto readEnd = begin(m_data) + newPos;
442+
auto readBegin = std::begin(m_data) + m_current_position;
443+
auto readEnd = std::begin(m_data) + newPos;
444444

445445
#ifdef _WIN32
446446
// Avoid warning C4996: Use checked iterators under SECURE_SCL
@@ -470,7 +470,7 @@ namespace Concurrency { namespace streams {
470470
resize_for_write(newSize);
471471

472472
// Copy the data
473-
std::copy(ptr, ptr + count, begin(m_data) + m_current_position);
473+
std::copy(ptr, ptr + count, std::begin(m_data) + m_current_position);
474474

475475
// Update write head and satisfy pending reads if any
476476
update_current_position(newSize);

0 commit comments

Comments
 (0)