Unverified Commit 976fea05 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by GitHub
Browse files

Fix Clazy warnings (#4988)

* stl.h: Use C++11 range-loops with const reference

This saves copy-ctor and dtor for non-trivial types by value
Found by clazy (range-loop-reference)

* test_smart_ptr.cpp cleanup

Introduce `pointer_set<T>`

https://github.com/boostorg/unordered/issues/139



> Based on the standard, the first move should leave a in a "valid but unspecified state";

---------

Co-authored-by: default avatarRalf W. Grosse-Kunstleve <rwgk@google.com>
parent eeac2f45
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