diff --git a/include/boost/algorithm/algorithm.hpp b/include/boost/algorithm/algorithm.hpp index 96b3b48..2bbee1d 100644 --- a/include/boost/algorithm/algorithm.hpp +++ b/include/boost/algorithm/algorithm.hpp @@ -25,10 +25,10 @@ namespace boost { namespace algorithm { template -T identity_operation ( std::multiplies ) { return T(1); } +BOOST_CXX14_CONSTEXPR T identity_operation ( std::multiplies ) { return T(1); } template -T identity_operation ( std::plus ) { return T(0); } +BOOST_CXX14_CONSTEXPR T identity_operation ( std::plus ) { return T(0); } /// \fn power ( T x, Integer n )