Skip to content

Commit

Permalink
Merge pull request #12 from lefticus/update_build_system
Browse files Browse the repository at this point in the history
Update build system
  • Loading branch information
lefticus committed Mar 18, 2024
2 parents bed9845 + da323ab commit d2c65c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/lefticus/tools/non_promoting_ints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ template<std::integral Type> struct int_np
{
using value_type = Type;

private:
value_type value;

public:
// if it's the proper type, make it easy to convert
// cppcheck-suppress noExplicitConstructor
constexpr int_np(value_type value_) noexcept : value{ value_ } {}
Expand Down Expand Up @@ -227,9 +231,6 @@ template<std::integral Type> struct int_np
}

friend constexpr auto operator<=>(const int_np &, const int_np &) = default;

private:
value_type value;
};

using uint_np8_t = int_np<std::uint8_t>;
Expand Down

0 comments on commit d2c65c0

Please sign in to comment.