Quash a whole bunch of warnings
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@145624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1860,8 +1860,9 @@ public:
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit linear_congruential_engine(result_type __s = default_seed)
|
||||
{seed(__s);}
|
||||
template<class _Sseq> explicit linear_congruential_engine(_Sseq& __q,
|
||||
template<class _Sseq>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit linear_congruential_engine(_Sseq& __q,
|
||||
typename enable_if<__is_seed_sequence<_Sseq, linear_congruential_engine>::value>::type* = 0)
|
||||
{seed(__q);}
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
@@ -2116,8 +2117,9 @@ public:
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit mersenne_twister_engine(result_type __sd = default_seed)
|
||||
{seed(__sd);}
|
||||
template<class _Sseq> explicit mersenne_twister_engine(_Sseq& __q,
|
||||
template<class _Sseq>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit mersenne_twister_engine(_Sseq& __q,
|
||||
typename enable_if<__is_seed_sequence<_Sseq, mersenne_twister_engine>::value>::type* = 0)
|
||||
{seed(__q);}
|
||||
void seed(result_type __sd = default_seed);
|
||||
@@ -2200,7 +2202,7 @@ private:
|
||||
(__count >= __w),
|
||||
result_type
|
||||
>::type
|
||||
__lshift(result_type __x) {return result_type(0);}
|
||||
__lshift(result_type) {return result_type(0);}
|
||||
|
||||
template <size_t __count>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
@@ -2220,7 +2222,7 @@ private:
|
||||
(__count >= _Dt),
|
||||
result_type
|
||||
>::type
|
||||
__rshift(result_type __x) {return result_type(0);}
|
||||
__rshift(result_type) {return result_type(0);}
|
||||
};
|
||||
|
||||
template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
|
||||
@@ -2485,8 +2487,9 @@ public:
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit subtract_with_carry_engine(result_type __sd = default_seed)
|
||||
{seed(__sd);}
|
||||
template<class _Sseq> explicit subtract_with_carry_engine(_Sseq& __q,
|
||||
template<class _Sseq>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit subtract_with_carry_engine(_Sseq& __q,
|
||||
typename enable_if<__is_seed_sequence<_Sseq, subtract_with_carry_engine>::value>::type* = 0)
|
||||
{seed(__q);}
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
@@ -2955,8 +2958,9 @@ public:
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit independent_bits_engine(result_type __sd) : __e_(__sd) {}
|
||||
template<class _Sseq> explicit independent_bits_engine(_Sseq& __q,
|
||||
template<class _Sseq>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit independent_bits_engine(_Sseq& __q,
|
||||
typename enable_if<__is_seed_sequence<_Sseq, independent_bits_engine>::value &&
|
||||
!is_convertible<_Sseq, _Engine>::value>::type* = 0)
|
||||
: __e_(__q) {}
|
||||
@@ -3033,7 +3037,7 @@ private:
|
||||
(__count >= _Dt),
|
||||
result_type
|
||||
>::type
|
||||
__lshift(result_type __x) {return result_type(0);}
|
||||
__lshift(result_type) {return result_type(0);}
|
||||
};
|
||||
|
||||
template<class _Engine, size_t __w, class _UIntType>
|
||||
@@ -3178,8 +3182,9 @@ public:
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit shuffle_order_engine(result_type __sd) : __e_(__sd) {__init();}
|
||||
template<class _Sseq> explicit shuffle_order_engine(_Sseq& __q,
|
||||
template<class _Sseq>
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
explicit shuffle_order_engine(_Sseq& __q,
|
||||
typename enable_if<__is_seed_sequence<_Sseq, shuffle_order_engine>::value &&
|
||||
!is_convertible<_Sseq, _Engine>::value>::type* = 0)
|
||||
: __e_(__q) {__init();}
|
||||
@@ -3369,9 +3374,9 @@ public:
|
||||
static const result_type _Max = 0xFFFFFFFFu;
|
||||
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
static const/*expr*/ result_type min() { return _Min;}
|
||||
static constexpr result_type min() { return _Min;}
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
static const/*expr*/ result_type max() { return _Max;}
|
||||
static constexpr result_type max() { return _Max;}
|
||||
|
||||
// constructors
|
||||
explicit random_device(const string& __token = "/dev/urandom");
|
||||
|
Reference in New Issue
Block a user