Skip to content
Snippets Groups Projects
Unverified Commit d5ace349 authored by Sam Yates's avatar Sam Yates Committed by GitHub
Browse files

Replace arb::util::optional with std::optional. (#1158)

* Substitute `std::optional<T>` for `arb::util::optional<T>` for non-reference types T.
* Remove reference-deducing `util::value_by_key`; replace usages with new function `util::ptr_by_key`.
* Add some missing header includes that were required but included only transitively.
* Remove `operator<<` overload for optional in python/strprintf.hpp; replace with utility wrapper class that catches `std::optional<T>`.
* Wrap some `std::optional` values with `to_string` in ostream output in python lib.

Fixes #1154.
parent 6b561d15
No related branches found
No related tags found
No related merge requests found
Showing
with 79 additions and 512 deletions
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