mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-04 16:26:30 +02:00
functions used in constexpr context must be marked 'constexpr'
Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
namespace ba = boost::algorithm;
|
namespace ba = boost::algorithm;
|
||||||
|
|
||||||
bool intGreater ( int lhs, int rhs ) { return lhs > rhs; }
|
BOOST_CONSTEXPR bool intGreater ( int lhs, int rhs ) { return lhs > rhs; }
|
||||||
bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; }
|
BOOST_CONSTEXPR bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; }
|
||||||
|
|
||||||
class custom {
|
class custom {
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user