Skip to content

Commit b0f04af

Browse files
committed
functions used in constexpr context must be marked 'constexpr'
Signed-off-by: Daniela Engert <[email protected]>
1 parent df58b44 commit b0f04af

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)