Skip to content

Commit

Permalink
bugfix for 3way comparison return type
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Jul 2, 2024
1 parent 9114d20 commit d292ee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hid-rp/hid/usage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define __HID_USAGE_HPP_

#include <cstdint>
#include <compare>
#include <limits>

namespace hid
Expand Down Expand Up @@ -68,7 +69,7 @@ class usage_t
constexpr page_id_t page_id() const { return value_ >> 16; }
constexpr usage_id_t id() const { return value_ & std::numeric_limits<usage_id_t>::max(); }

constexpr bool operator<=>(const usage_t&) const = default;
constexpr auto operator<=>(const usage_t&) const = default;

private:
type value_;
Expand Down

0 comments on commit d292ee4

Please sign in to comment.