fix | operator for index tuple

This commit is contained in:
Christian Zimmermann 2018-12-24 15:42:44 +01:00
parent 675b0dd9f0
commit f6372fcbdb

View file

@ -21,9 +21,9 @@ namespace MultiArrayTools
template <class IndexType1, class IndexType2> template <class IndexType1, class IndexType2>
inline auto operator|(const IPTR<IndexType1>& i1, const IPTR<IndexType2>& i2) inline auto operator|(const IPTR<IndexType1>& i1, const IPTR<IndexType2>& i2)
-> decltype(std::make_tuple(i1->THIS(),i2->THIS())) -> decltype(std::make_tuple(i1,i2))
{ {
return std::make_tuple(i1->THIS(),i2->THIS()); return std::make_tuple(i1,i2);
} }
template <class IndexType1, class... IndexTypes2> template <class IndexType1, class... IndexTypes2>