This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/57898] std::bind incompatible with ref-qualified ptmf


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57898

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Nov  3 02:55:32 2014
New Revision: 217024

URL: https://gcc.gnu.org/viewcvs?rev=217024&root=gcc&view=rev
Log:
Add support for ref-qualified functions to std::mem_fn

    PR libstdc++/57898
    * include/std/functional (_Mem_fn_traits_base): New class template.
    (_Mem_fn_traits): New class template with specializations for every
    combination of cv-qualified and ref-qualified member function.
    (_Mem_fn_base): New class template for all pointer to member function
    types and partial specialization for pointer to member object types.
    (_Mem_fn): Inherit from _Mem_fn_base.
    * testsuite/20_util/function_objects/mem_fn/refqual.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/refqual.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/functional


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