Unverified Commit fb042d69 authored by Michael Goulding's avatar Michael Goulding Committed by GitHub
Browse files

Fix warning C26817 on copying in `for (auto vh : value_and_holder(...))` (#2382)



* Fix warning C26817: Potentially expensive copy of variable 'vh' in range-for loop. Consider making it a const reference (es.71).

* Replace another instance of `for (auto vh : values_and_holders(...))` with `auto vh &` (found by @bstaletic)

Co-authored-by: default avatarMichael Goulding <Michael.Goulding@microsoft.com>
Co-authored-by: default avatarYannick Jadoul <yannick.jadoul@belgacom.net>
parent 2e2de8c8
Supports Markdown
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