Imported Upstream version 1.64.0
[platform/upstream/boost.git] / boost / multiprecision / cpp_bin_float / transcendental.hpp
index 9037dd3..066bc45 100644 (file)
@@ -70,6 +70,7 @@ void eval_exp(cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>
    if(type == (int)FP_NAN)
    {
       res = arg;
+      errno = EDOM;
       return;
    }
    else if(type == (int)FP_INFINITE)