Merge pull request #43 from jeremy-murphy/C++14_constexpr

Add BOOST_CXX14_CONSTEXPR to identity_operation.
This commit is contained in:
Marshall Clow
2018-02-05 07:09:53 -08:00
committed by GitHub

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 )