From 298310f521853b1d5caaf3ca13bef4c9b0018915 Mon Sep 17 00:00:00 2001 From: "Jeremy W. Murphy" Date: Tue, 6 Feb 2018 00:45:21 +1100 Subject: [PATCH] Add BOOST_CXX14_CONSTEXPR to identity_operation. --- include/boost/algorithm/algorithm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )