Skip to content

Commit

Permalink
Add is_signed and is_integer to numeric_limits (#230)
Browse files Browse the repository at this point in the history
Co-authored-by: Nic Holthaus <[email protected]>
  • Loading branch information
jml1795 and nholthaus authored Oct 10, 2020
1 parent 665f296 commit 1e2c7ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/units.h
Original file line number Diff line number Diff line change
Expand Up @@ -4838,6 +4838,8 @@ namespace std
{
return units::unit_t<Units, T, NonLinearScale>(std::numeric_limits<T>::lowest());
}
static constexpr bool is_integer = std::numeric_limits<T>::is_integer;
static constexpr bool is_signed = std::numeric_limits<T>::is_signed;
};
}

Expand Down

0 comments on commit 1e2c7ed

Please sign in to comment.