diff --git a/include/algorithm b/include/algorithm index 036b42ced..282083a89 100644 --- a/include/algorithm +++ b/include/algorithm @@ -2962,8 +2962,8 @@ public: result_type operator()() {return __eval(integral_constant());} private: - result_type __eval(false_type) const; - result_type __eval(true_type) const; + result_type __eval(false_type); + result_type __eval(true_type); }; template @@ -3004,14 +3004,14 @@ __independent_bits_engine<_Engine, _UIntType> template inline _UIntType -__independent_bits_engine<_Engine, _UIntType>::__eval(false_type) const +__independent_bits_engine<_Engine, _UIntType>::__eval(false_type) { return static_cast(__e_() & __mask0_); } template _UIntType -__independent_bits_engine<_Engine, _UIntType>::__eval(true_type) const +__independent_bits_engine<_Engine, _UIntType>::__eval(true_type) { const size_t _WRt = numeric_limits::digits; result_type _Sp = 0; diff --git a/include/random b/include/random index 85a1cca5d..9073a5285 100644 --- a/include/random +++ b/include/random @@ -3124,8 +3124,8 @@ public: private: _LIBCPP_INLINE_VISIBILITY - result_type __eval(false_type) const; - result_type __eval(true_type) const; + result_type __eval(false_type); + result_type __eval(true_type); template _LIBCPP_INLINE_VISIBILITY @@ -3151,14 +3151,14 @@ private: template inline _UIntType -independent_bits_engine<_Engine, __w, _UIntType>::__eval(false_type) const +independent_bits_engine<_Engine, __w, _UIntType>::__eval(false_type) { return static_cast(__e_() & __mask0); } template _UIntType -independent_bits_engine<_Engine, __w, _UIntType>::__eval(true_type) const +independent_bits_engine<_Engine, __w, _UIntType>::__eval(true_type) { result_type _Sp = 0; for (size_t __k = 0; __k < __n0; ++__k)