We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c03d72 commit 604a5e9Copy full SHA for 604a5e9
libcxx/test/support/constexpr_random.h
@@ -386,10 +386,9 @@ class simple_random_generator {
386
public:
387
typedef std::uint16_t result_type;
388
389
-#if TEST_STD_VER >= 11
390
- static constexpr result_type min() noexcept { return 0; }
391
- static constexpr result_type max() noexcept { return static_cast<result_type>(-1); }
392
-#else
+ static TEST_CONSTEXPR result_type min() TEST_NOEXCEPT { return 0; }
+ static TEST_CONSTEXPR result_type max() TEST_NOEXCEPT { return static_cast<result_type>(-1); }
+#if TEST_STD_VER < 11
393
static const result_type min_value = 0;
394
static const result_type max_value = static_cast<result_type>(-1);
395
#endif
0 commit comments