File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1087,10 +1087,8 @@ namespace xt
1087
1087
return xfunction_type (detail::lambda_adapt<F>(std::forward<F>(lambda)), std::forward<E>(args)...);
1088
1088
}
1089
1089
1090
- #define XTENSOR_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
1091
-
1092
1090
// Workaround for MSVC 2015 & GCC 4.9
1093
- #if (defined(_MSC_VER) && _MSC_VER < 1910) || (defined(__GNUC__) && GCC_VERSION < 49999 )
1091
+ #if (defined(_MSC_VER) && _MSC_VER < 1910) || (defined(__GNUC__) && __GNUC__ < 5 )
1094
1092
#define XTENSOR_DISABLE_LAMBDA_FCT
1095
1093
#endif
1096
1094
@@ -1160,7 +1158,6 @@ namespace xt
1160
1158
#endif
1161
1159
}
1162
1160
1163
- #undef XTENSOR_GCC_VERSION
1164
1161
#undef XTENSOR_DISABLE_LAMBDA_FCT
1165
1162
1166
1163
namespace detail
Original file line number Diff line number Diff line change 30
30
31
31
#include " xtensor_config.hpp"
32
32
33
- #if (_MSC_VER >= 1910)
33
+ #if (defined(_MSC_VER) && _MSC_VER >= 1910)
34
34
#define NOEXCEPT (T )
35
35
#else
36
36
#define NOEXCEPT (T ) noexcept (T)
You can’t perform that action at this time.
0 commit comments