Skip to content

Commit 1803cd6

Browse files
authored
Merge pull request #511 from ValeevGroup/evaleev/fixup/tensor-interface-assignment
`TensorInterface::operator=`: check value_type, not numeric_type
2 parents 3587080 + 4130288 commit 1803cd6

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)