diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-09-20 18:32:08 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-09-20 18:32:08 +0000 |
commit | 8f27eef230a841daaef26e47329399bd58e7bfe8 (patch) | |
tree | 1dff800ea8accb844958667abfbe530543957a08 /libcxx/include/algorithm | |
parent | 9be24cf516c79322e53d2d7b3a391117c4460883 (diff) | |
download | bcm5719-llvm-8f27eef230a841daaef26e47329399bd58e7bfe8.tar.gz bcm5719-llvm-8f27eef230a841daaef26e47329399bd58e7bfe8.zip |
Mark the __eval methods on independent_bits_engine (and __independent_bits_engine) as const, since they make no changes to the object. NFC.
llvm-svn: 313789
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r-- | libcxx/include/algorithm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 282083a89c2..036b42ceda5 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -2962,8 +2962,8 @@ public: result_type operator()() {return __eval(integral_constant<bool, _Rp != 0>());} private: - result_type __eval(false_type); - result_type __eval(true_type); + result_type __eval(false_type) const; + result_type __eval(true_type) const; }; template<class _Engine, class _UIntType> @@ -3004,14 +3004,14 @@ __independent_bits_engine<_Engine, _UIntType> template<class _Engine, class _UIntType> inline _UIntType -__independent_bits_engine<_Engine, _UIntType>::__eval(false_type) +__independent_bits_engine<_Engine, _UIntType>::__eval(false_type) const { return static_cast<result_type>(__e_() & __mask0_); } template<class _Engine, class _UIntType> _UIntType -__independent_bits_engine<_Engine, _UIntType>::__eval(true_type) +__independent_bits_engine<_Engine, _UIntType>::__eval(true_type) const { const size_t _WRt = numeric_limits<result_type>::digits; result_type _Sp = 0; |