summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-09-11 15:33:21 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-09-11 15:33:21 +0000
commit37030a77a08fc1194b9fc77c7dc2eea6d52e3150 (patch)
treecbaf35274eeec59e1883c01705284b2e2e03a10f
parent2833e392ab2a4f3bd4c30b8caf287590ee6900a3 (diff)
downloadbcm5719-llvm-37030a77a08fc1194b9fc77c7dc2eea6d52e3150.tar.gz
bcm5719-llvm-37030a77a08fc1194b9fc77c7dc2eea6d52e3150.zip
Fix another const bug in function. Thanks to Daniel Krugler for finding this and the previous bug.
llvm-svn: 113686
-rw-r--r--libcxx/include/functional4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/functional b/libcxx/include/functional
index b9378aa2ffd..3cc21d48629 100644
--- a/libcxx/include/functional
+++ b/libcxx/include/functional
@@ -1141,9 +1141,9 @@ public:
// deleted overloads close possible hole in the type system
template<class _R2, class... _ArgTypes2>
- bool operator==(const function<_R2(_ArgTypes2...)>&) = delete;
+ bool operator==(const function<_R2(_ArgTypes2...)>&) const = delete;
template<class _R2, class... _ArgTypes2>
- bool operator!=(const function<_R2(_ArgTypes2...)>&) = delete;
+ bool operator!=(const function<_R2(_ArgTypes2...)>&) const = delete;
public:
// function invocation:
_R operator()(_ArgTypes...) const;
OpenPOWER on IntegriCloud