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 2509


Tested on Linux-X64.

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

    Implement LWG 2509,
    any_cast doesn't work with rvalue reference targets and cannot
    move with a value target.
    * include/experimental/any (any(_ValueType&&)): Constrain and
    add an overload that doesn't forward.
    * include/experimental/any (any_cast(any&&)): Constrain and
    add an overload that moves.
    * testsuite/experimental/any/misc/any_cast.cc: Add tests for
    the functionality added by LWG 2509.

Attachment: lwg2509.diff
Description: Text document


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