[PATCH] D25403: [CUDA] Mark __libcpp_{isnan, isinf, isfinite} as constexpr.

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 8 14:23:54 PST 2016


hfinkel added inline comments.


================
Comment at: libcxx/test/libcxx/numerics/c.math/constexpr-fns.pass.cpp:24
+
+#if __cplusplus >= 201103L
+constexpr bool a = std::__libcpp_isnan(0.);
----------------
I think the preferred form here is:

#if TEST_STD_VER >= 11


https://reviews.llvm.org/D25403





More information about the cfe-commits mailing list