Skip to content

Commit

Permalink
Merge pull request microsoft#82 from dogukan/master
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Mar 31, 2016
2 parents 43c1c87 + 2bf31b7 commit fb4aba9
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit fb4aba9

Please sign in to comment.