[cfe-commits] [libcxx] r113686 - /libcxx/trunk/include/functional
Howard Hinnant
hhinnant at apple.com
Sat Sep 11 08:33:22 PDT 2010
Author: hhinnant
Date: Sat Sep 11 10:33:21 2010
New Revision: 113686
URL: http://llvm.org/viewvc/llvm-project?rev=113686&view=rev
Log:
Fix another const bug in function. Thanks to Daniel Krugler for finding this and the previous bug.
Modified:
libcxx/trunk/include/functional
Modified: libcxx/trunk/include/functional
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/functional?rev=113686&r1=113685&r2=113686&view=diff
==============================================================================
--- libcxx/trunk/include/functional (original)
+++ libcxx/trunk/include/functional Sat Sep 11 10:33:21 2010
@@ -1141,9 +1141,9 @@
// 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;
More information about the cfe-commits
mailing list