]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/experimental/random
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / experimental / random
index 4165a8520c8c5e72f7e92adf366658b473bfb598..2c6b01ffbc6de3e69d81d75bdf425f55136a3b9a 100644 (file)
@@ -1,6 +1,6 @@
 // <experimental/random> -*- C++ -*-
 
-// Copyright (C) 2015-2020 Free Software Foundation, Inc.
+// Copyright (C) 2015-2023 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -30,6 +30,8 @@
 #ifndef _GLIBCXX_EXPERIMENTAL_RANDOM
 #define _GLIBCXX_EXPERIMENTAL_RANDOM 1
 
+#include <bits/requires_hosted.h> // experimental is currently omitted
+
 #if __cplusplus >= 201402L
 #include <random>
 #include <experimental/bits/lfts_config.h>
@@ -50,6 +52,7 @@ inline namespace fundamentals_v2 {
 
   // 13.2.2.1, Function template randint
   template<typename _IntType>
+    [[__nodiscard__]]
     inline _IntType
     randint(_IntType __a, _IntType __b)
     {