mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 13:39:24 +00:00
Enabled previous commit under MSVC, introduced new feature toggle
This commit is contained in:
parent
c06afe438e
commit
60a9ac7e65
4 changed files with 17 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <cmath>
|
||||
#include <limits>
|
||||
|
||||
#if defined(CATCH_CPP11_OR_GREATER)
|
||||
#if defined(CATCH_CONFIG_CPP11_TYPE_TRAITS)
|
||||
#include <type_traits>
|
||||
#endif
|
||||
|
||||
|
@ -45,7 +45,7 @@ namespace Detail {
|
|||
return approx;
|
||||
}
|
||||
|
||||
#if defined(CATCH_CPP11_OR_GREATER)
|
||||
#if defined(CATCH_CONFIG_CPP11_TYPE_TRAITS)
|
||||
template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
|
||||
friend bool operator == ( const T& lhs, Approx const& rhs ) {
|
||||
// Thanks to Richard Harris for his help refining this formula
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue