Re: [PATCH] PR 70564 disambiguate constructors for not_fn call wrapper

2016-10-05 Thread Jonathan Wakely
On 05/10/16 12:31 +0100, Jonathan Wakely wrote: Tested powerpc64le-linux, committing to trunk and gcc-6-branch. And here's the slightly diffeernt patch for the branch (because we only have experimental::not_fn there, not std::not_fn). commit 2484aeb5b25372c3a7833a000b798e3bf6f41c6b Author: re

Re: [PATCH] PR 70564 disambiguate constructors for not_fn call wrapper

2016-10-05 Thread Jonathan Wakely
On 05/10/16 12:31 +0100, Jonathan Wakely wrote: diff --git a/libstdc++-v3/testsuite/20_util/not_fn/1.cc b/libstdc++-v3/testsuite/20_util/not_fn/1.cc index 375c7cc..8d6e9ec 100644 --- a/libstdc++-v3/testsuite/20_util/not_fn/1.cc +++ b/libstdc++-v3/testsuite/20_util/not_fn/1.cc @@ -84,6 +84,12 @@

[PATCH] PR 70564 disambiguate constructors for not_fn call wrapper

2016-10-05 Thread Jonathan Wakely
The _Not_fn::_Not_fn<_Fn2>(_Fn2&&) ctor gets chosen by overload resolution when trying to copy the call wrapper object (although only for direct-initialization, because it's explicit). Rather than constraining it using SFINAE I'm just adding a second parameter, so it isn't viable for copying or mo