]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix construction of std::function from null pointer-to-member
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Jan 2016 11:43:37 +0000 (11:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 18 Jan 2016 11:43:37 +0000 (11:43 +0000)
commit9c5ad80efd80e3962bb7e09bc3ab73545f56d549
tree47166d36c8198f6504c1f427a9a59226a5709ca2
parent9a1bdc314ba086904861838838bc2e0743476dcd
Fix construction of std::function from null pointer-to-member

PR libstdc++/69293
* include/std/functional (_Function_base::_M_not_empty_function):
Change overloads for pointers to take arguments by value.
* testsuite/20_util/function/cons/57465.cc: Add tests for
pointer-to-member cases.

From-SVN: r232504
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function/cons/57465.cc