constexpr exp, log, pow
问题 I'd like to use constexpr versions of standard <cmath> functions like exp , log , pow in a portable way. I currently have a non-portable solution g++ treats these functions as constexpr - a non-compliant extension of C++, but I am concerned about portability and future-proofing (I imagine that this extension might one day be removed from g++ ). I am interested in constexpr versions of these functions, not template metaprograms - I want the same functionality to be available both at compile