From: Ville Voutilainen Date: Thu, 14 Jul 2016 09:09:50 +0000 (+0300) Subject: Fix ChangeLog. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d31471bade3deb8f1d7e3110e0d40c1555f849;p=gcc.git Fix ChangeLog. From-SVN: r238328 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 264f7935e94..70ad53a0531 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,44 @@ +2016-07-13 Ville Voutilainen + + Implement P0307R2, Making Optional Greater Equal Again. + * include/experimental/optional (_Has_addressof): Fix the comment. + * include/std/optional (_Has_addressof): Likewise. + (operator=(_Up&&)): Constrain. + (operator=(const optional<_Up>&)): Likewise. + (operator=(optional<_Up>&&)): Likewise. + (__optional_relop_t): New. + (operator==(const optional<_Tp>&, const optional<_Tp>&)): Constrain. + (operator!=(const optional<_Tp>&, const optional<_Tp>&)): + Constrain and make transparent. + (operator<(const optional<_Tp>&, const optional<_Tp>&)): Constrain. + (operator>(const optional<_Tp>&, const optional<_Tp>&)): + Constrain and make transparent. + (operator<=(const optional<_Tp>&, const optional<_Tp>&)): Likewise. + (operator>=(const optional<_Tp>&, const optional<_Tp>&)): Likewise. + (operator==(const optional<_Tp>&, const _Tp&): Constrain. + (operator==(const _Tp&, const optional<_Tp>&)): Likewise. + (operator!=(const optional<_Tp>&, _Tp const&)): + Constrain and make transparent. + (operator!=(const _Tp&, const optional<_Tp>&)): Likewise. + (operator<(const optional<_Tp>&, const _Tp&)): Constrain. + (operator<(const _Tp&, const optional<_Tp>&)): Likewise. + (operator>(const optional<_Tp>&, const _Tp&)): + Constrain and make transparent. + (operator>(const _Tp&, const optional<_Tp>&)): Likewise. + (operator<=(const optional<_Tp>&, const _Tp&)): Likewise. + (operator<=(const _Tp&, const optional<_Tp>&)): Likewise. + (operator>=(const optional<_Tp>&, const _Tp&)): Likewise. + (operator>=(const _Tp&, const optional<_Tp>&)): Likewise. + * testsuite/20_util/optional/constexpr/relops/2.cc: Adjust. + * testsuite/20_util/optional/constexpr/relops/4.cc: Likewise. + * testsuite/20_util/optional/relops/1.cc: Likewise. + * testsuite/20_util/optional/relops/2.cc: Likewise. + * testsuite/20_util/optional/relops/3.cc: Likewise. + * testsuite/20_util/optional/relops/4.cc: Likewise. + * testsuite/20_util/optional/requirements.cc: Add tests to verify + that optional's relops are transparent and don't synthesize + operators. Also test that assignment sfinaes. + 2016-07-13 Jonathan Wakely PR libstdc++/71856