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] Fix the constraints for any's assignment operator template to properly reject assignment from a non-copyable lvalue.


Tested on Linux-x64.

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

    Fix the constraints for any's assignment operator template to properly
    reject assignment from a non-copyable lvalue.
    * include/std/any (operator=(_ValueType&&)): Constrain the decayed
    type for is_copy_constructible,
    * testsuite/20_util/any/requirements.cc: Add a test for
    non-copyable lvalues.

Attachment: any_assign_decay.diff
Description: Text document


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