Skip to content

Commit

Permalink
Remove 'const' from batch_bool assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
mnijhuis-tos authored and serge-sans-paille committed May 26, 2023
1 parent 8e2189b commit 86c01ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/xsimd/types/xsimd_batch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ namespace xsimd
batch_bool operator||(batch_bool const& other) const noexcept;

// update operators
batch_bool& operator&=(batch_bool const& other) const noexcept { return (*this) = (*this) & other; }
batch_bool& operator|=(batch_bool const& other) const noexcept { return (*this) = (*this) | other; }
batch_bool& operator^=(batch_bool const& other) const noexcept { return (*this) = (*this) ^ other; }
batch_bool& operator&=(batch_bool const& other) noexcept { return (*this) = (*this) & other; }
batch_bool& operator|=(batch_bool const& other) noexcept { return (*this) = (*this) | other; }
batch_bool& operator^=(batch_bool const& other) noexcept { return (*this) = (*this) ^ other; }

private:
template <class U, class... V, size_t I, size_t... Is>
Expand Down

0 comments on commit 86c01ba

Please sign in to comment.