diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2014-08-04 19:20:17 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2014-08-04 19:20:17 +0000 |
| commit | 89872e99a51761419440e16c839f4e8b6b4e6fce (patch) | |
| tree | f7e467ba15de4ebae33a92327cd9ab320c74ca99 /libcxx/include/__functional_base_03 | |
| parent | b4cb487c10ad04ad1330794687b2892602fa3bd3 (diff) | |
| download | bcm5719-llvm-89872e99a51761419440e16c839f4e8b6b4e6fce.tar.gz bcm5719-llvm-89872e99a51761419440e16c839f4e8b6b4e6fce.zip | |
Fix a problem with reference_wrapper in C++03 that was causing counting predicates to fail. Add a test to make sure it works. However, most of the reference_wrapper tests still fail in C++03 mode, due to a lack of decltype. No change there.
llvm-svn: 214760
Diffstat (limited to 'libcxx/include/__functional_base_03')
| -rw-r--r-- | libcxx/include/__functional_base_03 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/__functional_base_03 b/libcxx/include/__functional_base_03 index f297ee057a9..22c06add90f 100644 --- a/libcxx/include/__functional_base_03 +++ b/libcxx/include/__functional_base_03 @@ -1027,7 +1027,7 @@ public: typename __invoke_return0<type&, _A0>::type operator() (_A0& __a0) const { - return __invoke(get(), __a0); + return __invoke<type&, _A0>(get(), __a0); } template <class _A0, class _A1> @@ -1035,7 +1035,7 @@ public: typename __invoke_return1<type&, _A0, _A1>::type operator() (_A0& __a0, _A1& __a1) const { - return __invoke(get(), __a0, __a1); + return __invoke<type&, _A0, _A1>(get(), __a0, __a1); } template <class _A0, class _A1, class _A2> @@ -1043,7 +1043,7 @@ public: typename __invoke_return2<type&, _A0, _A1, _A2>::type operator() (_A0& __a0, _A1& __a1, _A2& __a2) const { - return __invoke(get(), __a0, __a1, __a2); + return __invoke<type&, _A0, _A1, _A2>(get(), __a0, __a1, __a2); } }; |

