@@ -251,12 +251,12 @@ class _LIBCPP_TEMPLATE_VIS linear_congruential_engine {
251251 static_assert (_Min < _Max, " linear_congruential_engine invalid parameters" );
252252
253253 // engine characteristics
254- static _LIBCPP_CONSTEXPR const result_type multiplier = __a;
255- static _LIBCPP_CONSTEXPR const result_type increment = __c;
256- static _LIBCPP_CONSTEXPR const result_type modulus = __m;
254+ static inline _LIBCPP_CONSTEXPR const result_type multiplier = __a;
255+ static inline _LIBCPP_CONSTEXPR const result_type increment = __c;
256+ static inline _LIBCPP_CONSTEXPR const result_type modulus = __m;
257257 _LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type min () { return _Min; }
258258 _LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type max () { return _Max; }
259- static _LIBCPP_CONSTEXPR const result_type default_seed = 1u ;
259+ static inline _LIBCPP_CONSTEXPR const result_type default_seed = 1u ;
260260
261261 // constructors and seeding functions
262262#ifndef _LIBCPP_CXX03_LANG
@@ -318,22 +318,6 @@ class _LIBCPP_TEMPLATE_VIS linear_congruential_engine {
318318 operator >>(basic_istream<_CharT, _Traits>& __is, linear_congruential_engine<_Up, _Ap, _Cp, _Np>& __x);
319319};
320320
321- template <class _UIntType , _UIntType __a, _UIntType __c, _UIntType __m>
322- _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
323- linear_congruential_engine<_UIntType, __a, __c, __m>::multiplier;
324-
325- template <class _UIntType , _UIntType __a, _UIntType __c, _UIntType __m>
326- _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
327- linear_congruential_engine<_UIntType, __a, __c, __m>::increment;
328-
329- template <class _UIntType , _UIntType __a, _UIntType __c, _UIntType __m>
330- _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
331- linear_congruential_engine<_UIntType, __a, __c, __m>::modulus;
332-
333- template <class _UIntType , _UIntType __a, _UIntType __c, _UIntType __m>
334- _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
335- linear_congruential_engine<_UIntType, __a, __c, __m>::default_seed;
336-
337321template <class _UIntType , _UIntType __a, _UIntType __c, _UIntType __m>
338322template <class _Sseq >
339323void linear_congruential_engine<_UIntType, __a, __c, __m>::__seed(_Sseq& __q, integral_constant<unsigned , 1 >) {
0 commit comments