Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report.

llvm-svn: 321966
This commit is contained in:
Marshall Clow 2018-01-07 17:39:57 +00:00
parent 3ffca790f6
commit 464de6ca09
1 changed files with 1 additions and 1 deletions

View File

@ -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