This appears to be a reasonable replacement for conversion_traits. It appeared that sfinae was kicking in at a few places with the conversion type since a few functions were passing in non-arithmetic types (like mat3 and vec3) as scalars. The enable_if was added to fail the incorrect function templates before common_type is compiled.
This appears to be a reasonable replacement for conversion_traits. It appeared that sfinae was kicking in at a few places with the conversion type since a few functions were passing in non-arithmetic types (like mat3 and vec3) as scalars. The enable_if was added to fail the incorrect function templates before common_type is compiled.