diff --git a/types.hpp b/types.hpp index 3077fcf5..5e5d8c40 100644 --- a/types.hpp +++ b/types.hpp @@ -70,6 +70,18 @@ template <> struct sign_types { }; +template <> struct sign_types { + typedef ssize_t with_sign; + typedef size_t without_sign; +}; + + +template <> struct sign_types { + typedef ssize_t with_sign; + typedef size_t without_sign; +}; + + /// Safely cast a numeric type to its signed comparison, aborting if the /// result is not representable. template