[Bug libstdc++/79798] [7 Regression] std::bind loses cv-qualifiers in result_of type

2017-03-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79798 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/79798] [7 Regression] std::bind loses cv-qualifiers in result_of type

2017-03-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79798 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Thu Mar 2 03:43:36 2017 New Revision: 245827 URL: https://gcc.gnu.org/viewcvs?rev=245827=gcc=rev Log: PR 79798 Fix incorrect use of std::result_of in std::bind PR

[Bug libstdc++/79798] [7 Regression] std::bind loses cv-qualifiers in result_of type

2017-03-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79798 --- Comment #1 from Jonathan Wakely --- We need to add && to the arg types in the result_of argument, so that top-level cv qualifiers aren't lost in the function type that result_of requires us to use: --- a/libstdc++-v3/include/std/functional