diff --git a/include/xtensor/xexpression_traits.hpp b/include/xtensor/xexpression_traits.hpp index 205de67a5..2f84ae234 100644 --- a/include/xtensor/xexpression_traits.hpp +++ b/include/xtensor/xexpression_traits.hpp @@ -103,16 +103,15 @@ namespace xt using type = xarray; }; -#if defined(__GNUC__) && (__GNUC__ > 6) -#if __cplusplus == 201703L +// Workaround for rebind_container problems when C++17 feature is enabled +#ifdef __cpp_template_template_args template