: pow(float, int) doesn't return double (original) (raw)
This bug was reported a long time ago at Developer Community, but I couldn't find an open issue here. Has it been forgotten?
#include <cmath>
#include <iomanip>
int main()
{
// This should be OK since C++11
static_assert( std::is_same<decltype(std::pow(10.f, 2)), double>::value );
}
See also DevCom-183102 and Microsoft-internal VSO-553723.