PR 79798 Fix incorrect use of std::result_of in std::bind
authorJonathan Wakely <jwakely@redhat.com>
Thu, 2 Mar 2017 03:43:36 +0000 (03:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 2 Mar 2017 03:43:36 +0000 (03:43 +0000)
commit5782e3094161376c1679c2e5099445b09cf2bf75
tree291669e26106e3d48236881073e46a0afaa1b3a9
parent9a642ccae4ba5ca86c58f7770fd833158530bf88
PR 79798 Fix incorrect use of std::result_of in std::bind

PR libstdc++/79798
* include/std/functional (bind::_Res_type_impl): Fix incorrect use of
result_of that loses top-level cv-qualifiers.
* testsuite/20_util/bind/79798.cc: New test.

From-SVN: r245827
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/bind/79798.cc [new file with mode: 0644]