[libcxx] r321966 - Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report.
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 7 09:39:57 PST 2018
Author: marshall
Date: Sun Jan 7 09:39:57 2018
New Revision: 321966
URL: http://llvm.org/viewvc/llvm-project?rev=321966&view=rev
Log:
Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report.
Modified:
libcxx/trunk/include/set
Modified: libcxx/trunk/include/set
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/set?rev=321966&r1=321965&r2=321966&view=diff
==============================================================================
--- libcxx/trunk/include/set (original)
+++ libcxx/trunk/include/set Sun Jan 7 09:39:57 2018
@@ -1077,7 +1077,7 @@ public:
template <typename _K2>
_LIBCPP_INLINE_VISIBILITY
typename enable_if<__is_transparent<_Compare, _K2>::value,size_type>::type
- count(const _K2& __k) {return __tree_.__count_multi(__k);}
+ count(const _K2& __k) const {return __tree_.__count_multi(__k);}
#endif
_LIBCPP_INLINE_VISIBILITY
More information about the cfe-commits
mailing list