forked from boostorg/algorithm
Merge pull request #46 from DanielaE/fix/missing-constexpr
functions used in constexpr context must be marked 'constexpr'
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