libstdc++: Add [[nodiscard]] to experimental::randint
Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/experimental/random (experimental::randint): Add nodiscard attribute.
This commit is contained in:
parent
27a1fb385b
commit
20ce14c799
@ -50,6 +50,7 @@ inline namespace fundamentals_v2 {
|
||||
|
||||
// 13.2.2.1, Function template randint
|
||||
template<typename _IntType>
|
||||
[[__nodiscard__]]
|
||||
inline _IntType
|
||||
randint(_IntType __a, _IntType __b)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user