The return types of half_float:: math functions are a mix of half and expr. As a result, return type deduction for the lambda in line 962 fails due to mismatching types across the various return statements. Returning half_float::expr from one of the other lambdas results in errors due to half_float::expr not being convertible to Box when the result is later used to initialize a literal, e.g., in line 839. This attempts to fix these issues by explicitly specifying a return type for the lambdas in question.
The return types of
half_float::
math functions are a mix ofhalf
andexpr
. As a result, return type deduction for the lambda in line 962 fails due to mismatching types across the various return statements. Returninghalf_float::expr
from one of the other lambdas results in errors due tohalf_float::expr
not being convertible toBox
when the result is later used to initialize a literal, e.g., in line 839. This attempts to fix these issues by explicitly specifying a return type for the lambdas in question.