Adapt ArithmeticTraits to C++11 constexpr.