diff --git a/types/traits.hpp b/types/traits.hpp index bd6518ed..8a4e77b4 100644 --- a/types/traits.hpp +++ b/types/traits.hpp @@ -46,7 +46,8 @@ template struct dereferenced_type> { typedef T t template struct dereferenced_type> { typedef T type; }; -//----------------------------------------------------------------------------- +///---------------------------------------------------------------------------- +/// find the unsigned version of a type if one exists template struct try_unsigned { @@ -58,7 +59,8 @@ template <> struct try_unsigned { typedef double type; }; template <> struct try_unsigned { typedef float type; }; -//----------------------------------------------------------------------------- +///---------------------------------------------------------------------------- +/// checks if a type can be converted in all cases without modification template struct is_lossless_cast : std::enable_if< std::is_integral::value && std::is_integral::value &&