Delay instantiation of __numeric_type within <cmath>, don't instantiate it when the is_arithmetic conditions do not hold as it causes errors with user-defined types with ambiguous conversions. Fixes PR21083
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D5710
[libcxx] Fix SFINAE in <cmath> ClosedPublic Authored by K-ballo on Oct 9 2014, 12:57 PM.
Details
Summary Delay instantiation of __numeric_type within <cmath>, don't instantiate it when the is_arithmetic conditions do not hold as it causes errors with user-defined types with ambiguous conversions. Fixes PR21083
Diff Detail Event TimelineK-ballo updated this object. This revision is now accepted and ready to land.Oct 15 2014, 3:32 AM
Revision Contents
Diff 14670 include/cmath
include/type_traits
test/numerics/c.math/cmath.pass.cpp
|