From b0f04afcb066ba4b4b4e0879a8860e4ed731f4e9 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sun, 25 Mar 2018 17:45:50 +0200 Subject: [PATCH] functions used in constexpr context must be marked 'constexpr' Signed-off-by: Daniela Engert --- test/clamp_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/clamp_test.cpp b/test/clamp_test.cpp index 2513cf8..c3e9433 100644 --- a/test/clamp_test.cpp +++ b/test/clamp_test.cpp @@ -14,8 +14,8 @@ namespace ba = boost::algorithm; -bool intGreater ( int lhs, int rhs ) { return lhs > rhs; } -bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; } +BOOST_CONSTEXPR bool intGreater ( int lhs, int rhs ) { return lhs > rhs; } +BOOST_CONSTEXPR bool doubleGreater ( double lhs, double rhs ) { return lhs > rhs; } class custom { public: