Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/TiledArray/dist_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ class DistArray : public madness::archive::ParallelSerializableObject {
/// initialized using the `op` function/functor, which transforms
/// each tile in `other` using `op`
/// \param other The array to be copied
template <typename OtherTile, typename Op>
template <typename OtherTile, typename Op,
typename = std::enable_if_t<
!std::is_same_v<detail::remove_cvr_t<Op>, TiledRange>>>
DistArray(const DistArray<OtherTile, Policy>& other, Op&& op) : pimpl_() {
*this = foreach<Tile>(other, std::forward<Op>(op));
}
Expand Down