Skip to content

Commit b75b1fc

Browse files
committed
relax Tensor(left,right,binaryelemeop,permutation) ctor constraints
1 parent 56b49a0 commit b75b1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TiledArray/tensor/tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ class Tensor {
492492
/// \param perm The permutation that will be applied to the arguments
493493
template <
494494
typename T1, typename T2, typename Op, typename Perm,
495-
typename std::enable_if<is_tensor<T1, T2>::value &&
495+
typename std::enable_if<detail::is_nested_tensor<T1, T2>::value &&
496496
detail::is_permutation_v<Perm>>::type* = nullptr>
497497
Tensor(const T1& left, const T2& right, Op&& op, const Perm& perm)
498498
: Tensor(outer(perm) * left.range(), 1, default_construct{false}) {

0 commit comments

Comments
 (0)