]>
sourceware.org Git - libabigail.git/commit
optional: minor improvements
This change makes minor improvements to the optional class used with
pre-C++17 compilers.
- adds operator== and operator!=
- adds various missing noexcept (but not constexpr) decorations
- defines operator bool in terms of has_value
Note that some constexpr decorations would require C++17 anyway.
* include/abg-cxx-compat.h (optional): Add operator== and
operator!=. Add noexcept decorations. Tweak operator bool.
Reviewed-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
This page took 0.031252 seconds and 5 git commands to generate.