Skip to content

Commit 604a5e9

Browse files
Fix errors in C++03
1 parent 0c03d72 commit 604a5e9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libcxx/test/support/constexpr_random.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,9 @@ class simple_random_generator {
386386
public:
387387
typedef std::uint16_t result_type;
388388

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
389+
static TEST_CONSTEXPR result_type min() TEST_NOEXCEPT { return 0; }
390+
static TEST_CONSTEXPR result_type max() TEST_NOEXCEPT { return static_cast<result_type>(-1); }
391+
#if TEST_STD_VER < 11
393392
static const result_type min_value = 0;
394393
static const result_type max_value = static_cast<result_type>(-1);
395394
#endif

0 commit comments

Comments
 (0)