[PATCH] [libcxx] Fix SFINAE in <cmath>

Agustín Bergé kaballo86 at hotmail.com
Thu Oct 9 12:57:46 PDT 2014


Hi mclow.lists, EricWF,

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

http://reviews.llvm.org/D5710

Files:
  include/cmath
  include/type_traits
  test/numerics/c.math/cmath.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5710.14670.patch
Type: text/x-patch
Size: 39638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141009/6dc19baf/attachment.bin>


More information about the cfe-commits mailing list