diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-08 12:50:43 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-08 12:50:43 +0200 |
| commit | ae29de96c94e5c582f4424804464cdd29bf2a013 (patch) | |
| tree | 10936bcf8e4feef83de5f8aed70aab11a1e46668 /include | |
| parent | eaf5934f81dcd8ce5705f13b651d7b93ca8c459f (diff) | |
| download | elna-ae29de96c94e5c582f4424804464cdd29bf2a013.tar.gz | |
Diffstat (limited to 'include')
| -rw-r--r-- | include/elna/boot/result.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/elna/boot/result.h b/include/elna/boot/result.h index 49e078e..ee73f33 100644 --- a/include/elna/boot/result.h +++ b/include/elna/boot/result.h @@ -232,7 +232,12 @@ namespace elna::boot inline constexpr bool is_signed_v = std::is_same_v<T, std::int8_t> || std::is_same_v<T, std::int16_t> || std::is_same_v<T, std::int32_t> - || std::is_same_v<T, std::int64_t>; + || std::is_same_v<T, std::int64_t> + || std::is_same_v<T, signed char> + || std::is_same_v<T, signed short> + || std::is_same_v<T, signed int> + || std::is_same_v<T, signed long> + || std::is_same_v<T, signed long long>; /** * Checks whether \p T is a signed, std::uint*_t type. @@ -245,7 +250,12 @@ namespace elna::boot inline constexpr bool is_unsigned_v = std::is_same_v<T, std::uint8_t> || std::is_same_v<T, std::uint16_t> || std::is_same_v<T, std::uint32_t> - || std::is_same_v<T, std::uint64_t>; + || std::is_same_v<T, std::uint64_t> + || std::is_same_v<T, unsigned char> + || std::is_same_v<T, unsigned short> + || std::is_same_v<T, unsigned int> + || std::is_same_v<T, unsigned long> + || std::is_same_v<T, unsigned long long>; /** * Checks whether \p T is any of std::int*_t or std::uint*_t types. |
