Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Release/include/cpprest/containerstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down