The error appears when the standard library doesn't uses constexpr for max()
41 ./boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
42 static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
43 ^
44 ./boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
45 return -(std::numeric_limits<float>::max) ();
46 ^
BOOST_CHRONO_LIB_CONSTEXPR is defined as follows
#if defined( BOOST_NO_CXX11_NUMERIC_LIMITS )
#define BOOST_CHRONO_LIB_CONSTEXPR
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 1002
#define BOOST_CHRONO_LIB_CONSTEXPR
#else
#define BOOST_CHRONO_LIB_CONSTEXPR BOOST_CONSTEXPR
#endif
Could you tell me what is the value of BOOST_NO_CXX11_NUMERIC_LIMITS and _LIBCPP_VERSION on the environment you get the error?