This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70564] Problem with std::experimental::not_fn
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2016 12:02:08 +0000
- Subject: [Bug libstdc++/70564] Problem with std::experimental::not_fn
- Auto-submitted: auto-generated
- References: <bug-70564-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70564
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Oct 5 12:01:36 2016
New Revision: 240778
URL: https://gcc.gnu.org/viewcvs?rev=240778&root=gcc&view=rev
Log:
PR 70564 disambiguate constructors for not_fn call wrapper
PR libstdc++/70564
* include/experimental/functional (_Not_fn): Remove.
(not_fn): Use std::_Not_fn.
* include/std/functional (_Not_fn): Add second parameter to
disambiguate copying from initialization by not_fn. Define for C++14.
(not_fn): Add second argument to initialization.
* testsuite/20_util/not_fn/1.cc: Copy call wrapper using
direct-initialization.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/functional
trunk/libstdc++-v3/include/std/functional
trunk/libstdc++-v3/testsuite/20_util/not_fn/1.cc
trunk/libstdc++-v3/testsuite/experimental/functional/not_fn.cc