This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3 PATCH] Implement LWG 2451


Tested on Linux-x64.

2016-07-05  Ville Voutilainen  <ville.voutilainen@gmail.com>

    Implement LWG 2451, optional<T> should 'forward' T's
    implicit conversions.
    * include/experimental/optional (__is_optional_impl, __is_optional):
    New.
    (optional()): Make constexpr and default.
    (optional(_Up&&), optional(const optional<_Up>&),
    optional(optional<_Up>&& __t): New.
    (operator=(_Up&&)): Constrain.
    (operator=(const optional<_Up>&), operator=(optional<_Up>&&)): New.
    * testsuite/experimental/optional/cons/value.cc:
    Add tests for the functionality added by LWG 2451.
    * testsuite/experimental/optional/cons/value_neg.cc: New.

Attachment: lwg2451.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]