Skip to content

Commit

Permalink
Attempt to fix windows build again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce committed Nov 11, 2024
1 parent 0ee99ce commit a25ff2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vatensor/comparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ void va::is_inf(VStoreAllocator& allocator, VArrayTarget target, const VData& a)
}

bool va::array_equal(const VData& a, const VData& b) {
#ifndef _WIN32
return va::vreduce<
Feature::array_equal,
promote::common_in_nat_out,
Expand All @@ -235,6 +236,11 @@ bool va::array_equal(const VData& a, const VData& b) {
a,
b
);
#else
std::shared_ptr<VArray> intermediate;
::equal_to(va::store::default_allocator, &intermediate, a, b);
return va::all(intermediate->data);
#endif
}

template <typename A, typename B>
Expand Down

0 comments on commit a25ff2d

Please sign in to comment.