Skip to content

Commit

Permalink
Switch span constructor for opt mode compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 authored Dec 1, 2023
1 parent 0849461 commit 6ad7a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/emp/bits/Bits_Data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ namespace emp {
}
}

[[nodiscard]] auto AsSpan() { return std::span<field_t,MAX_FIELDS>(bits.data()); }
[[nodiscard]] auto AsSpan() const { return std::span<const field_t,MAX_FIELDS>(bits.data()); }
[[nodiscard]] auto AsSpan() { return std::span<field_t,MAX_FIELDS>(bits.data(), MAX_FIELDS); }
[[nodiscard]] auto AsSpan() const { return std::span<const field_t,MAX_FIELDS>(bits.data(), MAX_FIELDS); }

[[nodiscard]] bool OK() const { return true; } // Nothing to check yet.

Expand Down

0 comments on commit 6ad7a5d

Please sign in to comment.