Add BOOST_CXX14_CONSTEXPR to identity_operation.

This commit is contained in:
Jeremy W. Murphy
2018-02-06 00:45:21 +11:00
parent 63c85e7c5e
commit 298310f521

View File

@ -25,10 +25,10 @@
namespace boost { namespace algorithm {
template <typename T>
T identity_operation ( std::multiplies<T> ) { return T(1); }
BOOST_CXX14_CONSTEXPR T identity_operation ( std::multiplies<T> ) { return T(1); }
template <typename T>
T identity_operation ( std::plus<T> ) { return T(0); }
BOOST_CXX14_CONSTEXPR T identity_operation ( std::plus<T> ) { return T(0); }
/// \fn power ( T x, Integer n )