Check number of arguments in bind expressions.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Nov 2014 02:55:36 +0000 (02:55 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 3 Nov 2014 02:55:36 +0000 (02:55 +0000)
commitafc449e82cb99424361f95190cec4381e4da11f8
tree6fe19de90a91be44ec202d03955b377cb960ebb6
parent8d9076969b94fe6ed2a7bb3e19b56f3c2ac9488c
Check number of arguments in bind expressions.

* include/std/functional (_Mem_fn_traits_base::__arity): New typedef.
(_Mem_fn_base::_Arity): New typedef.
(_Bind_check_arity): New class template.
(_Bind_helper, _Bindres_helper, _Bind_simple_helper): Check arity.
* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error.

From-SVN: r217025
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc