From e1a0ecea9bb84b28b4c22afe1decfeb32acc2d6e Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 9 Mar 2014 21:02:23 +0000 Subject: MFC r262805: Pull in r199848 from upstream libc++ trunk: Const qualify __mem_fn call operator QOI improvement. Differential Revision: http://llvm-reviews.chandlerc.com/D2059 This should help with building recent versions of Mesa. See also: https://bugs.freedesktop.org/show_bug.cgi?id=75505 Reported by: dumbbell --- contrib/libc++/include/__functional_03 | 8 ++++---- contrib/libc++/include/functional | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'contrib/libc++/include') diff --git a/contrib/libc++/include/__functional_03 b/contrib/libc++/include/__functional_03 index f9a3d97..2582601 100644 --- a/contrib/libc++/include/__functional_03 +++ b/contrib/libc++/include/__functional_03 @@ -33,28 +33,28 @@ public: // invoke typename __invoke_return::type - operator() () + operator() () const { return __invoke(__f_); } template typename __invoke_return0::type - operator() (_A0& __a0) + operator() (_A0& __a0) const { return __invoke(__f_, __a0); } template typename __invoke_return1::type - operator() (_A0& __a0, _A1& __a1) + operator() (_A0& __a0, _A1& __a1) const { return __invoke(__f_, __a0, __a1); } template typename __invoke_return2::type - operator() (_A0& __a0, _A1& __a1, _A2& __a2) + operator() (_A0& __a0, _A1& __a1, _A2& __a2) const { return __invoke(__f_, __a0, __a1, __a2); } diff --git a/contrib/libc++/include/functional b/contrib/libc++/include/functional index d40f70a..891ed46 100644 --- a/contrib/libc++/include/functional +++ b/contrib/libc++/include/functional @@ -1221,7 +1221,7 @@ public: template _LIBCPP_INLINE_VISIBILITY typename __invoke_return::type - operator() (_ArgTypes&&... __args) + operator() (_ArgTypes&&... __args) const { return __invoke(__f_, _VSTD::forward<_ArgTypes>(__args)...); } -- cgit v1.1