Skip to content

Fixed ambiguous call to begin when using with boost library. #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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