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 @@ -1088,10 +1088,8 @@ namespace xt
1088
1088
return xfunction_type (detail::lambda_adapt<F>(std::forward<F>(lambda)), std::forward<E>(args)...);
1089
1089
}
1090
1090
1091
- #define XTENSOR_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
1092
-
1093
1091
// Workaround for MSVC 2015 & GCC 4.9
1094
- #if (defined(_MSC_VER) && _MSC_VER < 1910) || (defined(__GNUC__) && GCC_VERSION < 49999 )
1092
+ #if (defined(_MSC_VER) && _MSC_VER < 1910) || (defined(__GNUC__) && __GNUC__ < 5 )
1095
1093
#define XTENSOR_DISABLE_LAMBDA_FCT
1096
1094
#endif
1097
1095
@@ -1161,7 +1159,6 @@ namespace xt
1161
1159
#endif
1162
1160
}
1163
1161
1164
- #undef XTENSOR_GCC_VERSION
1165
1162
#undef XTENSOR_DISABLE_LAMBDA_FCT
1166
1163
1167
1164
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