[PATCH] [libcxx] Support UDTs convertible to arithmetic types in <cmath>
Agustín Bergé
kaballo86 at hotmail.com
Thu Oct 23 14:24:08 PDT 2014
Hi mclow.lists, EricWF,
This patch enables generic <cmath> overloads for types unambiguously convertible to any arithmetic type. Addresses PR18218.
Only `pow` is implemented completely, with proper `noexcept` specifications and the conversion dance, taken from Howard's original patch. If it looks good I'll extend the implementation and test cases to all the other generic <cmath> overloads.
http://reviews.llvm.org/D5942
Files:
include/cmath
include/type_traits
test/numerics/c.math/cmath.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5942.15349.patch
Type: text/x-patch
Size: 13299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141023/658f69ca/attachment.bin>
More information about the cfe-commits
mailing list