diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-07 17:39:57 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-07 17:39:57 +0000 |
| commit | 464de6ca09946e74cef308b2e997de5aa61d701f (patch) | |
| tree | f98aa2f9cf0d3871ecc3474b70cc832da5f919cb | |
| parent | 3ffca790f6003b8c70a5758219a9f08092913e63 (diff) | |
| download | bcm5719-llvm-464de6ca09946e74cef308b2e997de5aa61d701f.tar.gz bcm5719-llvm-464de6ca09946e74cef308b2e997de5aa61d701f.zip | |
Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report.
llvm-svn: 321966
| -rw-r--r-- | libcxx/include/set | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/set b/libcxx/include/set index b4c6b2ef8c5..a9d102f858d 100644 --- a/libcxx/include/set +++ b/libcxx/include/set @@ -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 |

