Skip to content

Commit 4130288

Browse files
committed
TensorInterface::operator=: check value_type, not numeric_type
1 parent 3587080 commit 4130288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TiledArray/tensor/tensor_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class TensorInterface {
194194
template <typename T1, typename std::enable_if<detail::is_nested_tensor<
195195
T1>::value>::type* = nullptr>
196196
TensorInterface_& operator=(const T1& other) {
197-
if constexpr (std::is_same_v<numeric_type, numeric_t<T1>>) {
197+
if constexpr (std::is_same_v<value_type, value_t<T1>>) {
198198
TA_ASSERT(data_ != other.data());
199199
}
200200

0 commit comments

Comments
 (0)