Commit f3850dee authored by Dominik Charousset's avatar Dominik Charousset

Fix shadow-uncaptured-local warning

parent c8fa4ed3
...@@ -183,8 +183,8 @@ std::string to_string(ipv6_address x) { ...@@ -183,8 +183,8 @@ std::string to_string(ipv6_address x) {
// Output buffer. // Output buffer.
std::string result; std::string result;
// Utility for appending chunks to the result. // Utility for appending chunks to the result.
auto add_chunk = [&](uint16_t x) { auto add_chunk = [&](uint16_t chunk) {
append_v6_hex(result, reinterpret_cast<uint8_t*>(&x)); append_v6_hex(result, reinterpret_cast<uint8_t*>(&chunk));
}; };
auto add_chunks = [&](u16_iterator i, u16_iterator e) { auto add_chunks = [&](u16_iterator i, u16_iterator e) {
if (i != e) { if (i != e) {
......
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