Only disable the erf, erfc, and lgamma tests for older versions of c++.

This commit is contained in:
Benoit Steiner 2015-12-07 17:08:08 -08:00
parent b1ae39794c
commit b630d10b62

View File

@ -376,11 +376,11 @@ template<typename Scalar> void packetmath_real()
data2[i] = internal::random<Scalar>(0,1) * std::pow(Scalar(10), internal::random<Scalar>(-6,6));
}
#if __cplusplus > 199711L
if(internal::random<float>(0,1)<0.1)
data1[internal::random<int>(0, PacketSize)] = 0;
CHECK_CWISE1_IF(PacketTraits::HasSqrt, std::sqrt, internal::psqrt);
CHECK_CWISE1_IF(PacketTraits::HasLog, std::log, internal::plog);
#if __cplusplus > 199711L
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasLGamma, std::lgamma, internal::plgamma);
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasErf, std::erf, internal::perf);
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasErfc, std::erfc, internal::perfc);