Skip to content

Commit 509201f

Browse files
authored
Merge pull request boostorg#46 from DanielaE/fix/missing-constexpr
functions used in constexpr context must be marked 'constexpr'
2 parents df58b44 + b0f04af commit 509201f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/clamp_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace ba = boost::algorithm;
1616

17-
bool intGreater ( int lhs, int rhs ) { return lhs > rhs; }
18-
bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; }
17+
BOOST_CONSTEXPR bool intGreater ( int lhs, int rhs ) { return lhs > rhs; }
18+
BOOST_CONSTEXPR bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; }
1919

2020
class custom {
2121
public:

0 commit comments

Comments
 (0)