Skip to content

Commit

Permalink
add lib implementation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Li authored and Samuel Li committed Apr 30, 2024
1 parent 2cd1dc8 commit 26c9247
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/Bitmask.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Bitmask {
auto view_buffer() const -> const std::vector<uint64_t>&;
void use_bitstream(const void* p);

#if __cplusplus >= 201907L
#if __cplusplus >= 201907L && defined __cpp_lib_three_way_comparison
auto operator<=>(const Bitmask& rhs) const noexcept;
auto operator==(const Bitmask& rhs) const noexcept -> bool;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Bitmask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void sperr::Bitmask::use_bitstream(const void* p)
std::copy(pu64, pu64 + m_buf.size(), m_buf.begin());
}

#if __cplusplus >= 201907L
#if __cplusplus >= 201907L && defined __cpp_lib_three_way_comparison
auto sperr::Bitmask::operator<=>(const Bitmask& rhs) const noexcept
{
auto cmp = m_num_bits <=> rhs.m_num_bits;
Expand Down
2 changes: 1 addition & 1 deletion test_scripts/bitstream_unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ TEST(Bitmask, has_true_position)
{}
}

#if __cplusplus >= 201907L
#if __cplusplus >= 201907L && defined __cpp_lib_three_way_comparison
TEST(Bitmask, spaceship)
{
auto src = Mask(60);
Expand Down

0 comments on commit 26c9247

Please sign in to comment.