Skip to content

Commit d853759

Browse files
committed
Adding mutable to a lambda function that clang complained about.
1 parent b79a357 commit d853759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/include/cpprest/http_msg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ class http_response
631631
pplx::task<http::http_response> content_ready() const
632632
{
633633
http_response resp = *this;
634-
return pplx::create_task(_m_impl->_get_data_available()).then([resp](utility::size64_t) { return resp; });
634+
return pplx::create_task(_m_impl->_get_data_available()).then([resp](utility::size64_t) mutable { return resp; });
635635
}
636636

637637
std::shared_ptr<http::details::_http_response> _get_impl() const { return _m_impl; }
@@ -1166,7 +1166,7 @@ class http_request
11661166
pplx::task<http_request> content_ready() const
11671167
{
11681168
http_request req = *this;
1169-
return pplx::create_task(_m_impl->_get_data_available()).then([req](utility::size64_t) { return req; });
1169+
return pplx::create_task(_m_impl->_get_data_available()).then([req](utility::size64_t) mutable { return req; });
11701170
}
11711171

11721172
/// <summary>

0 commit comments

Comments
 (0)