Skip to content

Commit

Permalink
Fix feature check for clang-19+
Browse files Browse the repository at this point in the history
Applies fix described in xtensor-stack#2783
  • Loading branch information
EthanLuisMcDonough committed May 15, 2024
1 parent d9c3782 commit f6dd6bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/xtensor/xstorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@ namespace xt
}

// Workaround for rebind_container problems on GCC 8 with C++17 enabled
#if defined(__GNUC__) && __GNUC__ > 6 && !defined(__clang__) && __cplusplus >= 201703L
#ifdef __cpp_template_template_args
template <class X, class T, std::size_t N>
struct rebind_container<X, aligned_array<T, N>>
{
Expand Down
2 changes: 1 addition & 1 deletion include/xtensor/xutils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ namespace xt
using type = C<X, allocator>;
};

#if defined(__GNUC__) && __GNUC__ > 6 && !defined(__clang__) && __cplusplus >= 201703L
#ifdef __cpp_template_template_args
template <class X, class T, std::size_t N>
struct rebind_container<X, std::array<T, N>>
{
Expand Down

0 comments on commit f6dd6bd

Please sign in to comment.