Commit a8325f57 authored by Guillaume Roguez's avatar Guillaume Roguez

sips/ice: fix compiler support

Fix non-buildable sources on gcc 4.8.x

Refs #69371

Change-Id: I158167c70245a2ef5b4c287fc986f2fc9e18f8c3
parent ba773017
......@@ -1071,7 +1071,7 @@ SipsIceTransport::getBuff(decltype(buffPool_)& l, const uint8_t* b, const uint8_
if (buffPool_.empty())
l.emplace_back(b, e);
else {
l.splice(l.end(), buffPool_, buffPool_.cbegin());
l.splice(l.end(), buffPool_, buffPool_.begin());
auto& buf = l.back();
buf.resize(std::distance(b, e));
std::copy(b, e, buf.begin());
......@@ -1085,7 +1085,7 @@ SipsIceTransport::getBuff(decltype(buffPool_)& l, const size_t s)
if (buffPool_.empty())
l.emplace_back(s);
else {
l.splice(l.end(), buffPool_, buffPool_.cbegin());
l.splice(l.end(), buffPool_, buffPool_.begin());
auto& buf = l.back();
buf.resize(s);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment