Add parenthesis to prevent macro expansions of min/max

Closes #1772
This commit is contained in:
Martin Hořeňovský
2019-10-17 11:21:17 +02:00
parent 91fa55303b
commit 31906d83ec
2 changed files with 4 additions and 4 deletions

View File

@@ -20,10 +20,10 @@ namespace Catch {
using state_type = std::uint64_t;
public:
using result_type = std::uint32_t;
static constexpr result_type min() {
static constexpr result_type (min)() {
return 0;
}
static constexpr result_type max() {
static constexpr result_type (max)() {
return static_cast<result_type>(-1);
}