Skip to content

Commit

Permalink
disable considering std::vector ndarray-like
Browse files Browse the repository at this point in the history
since it causes ambiguity with existing std::vector-based overloads.
  • Loading branch information
germasch committed Jul 3, 2022
1 parent d4896a0 commit b2abc40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bindings/CXX11/adios2/cxx11/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ struct ndarray_traits : std::false_type
{
};

// disable considering std::vector ndarray-like since it causes ambiguity with
// existing std::vector-based overloads
template <typename T>
struct ndarray_traits<std::vector<T>> : std::false_type
{
};

template <typename C>
struct ndarray_traits<
C, detail::void_t<typename C::value_type, typename C::pointer,
Expand Down

0 comments on commit b2abc40

Please sign in to comment.