From a2ec0c0a4406b99ea9bcffdb1f1d42a4cf02d2b1 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sun, 7 Jan 2018 17:39:57 +0000 Subject: [PATCH] Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@321966 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/set | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/set b/include/set index b4c6b2ef8..a9d102f85 100644 --- a/include/set +++ b/include/set @@ -1077,7 +1077,7 @@ public: template _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