mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
committed by
Antonio Sánchez
parent
c5aa40675a
commit
c30af8f3db
@@ -83,7 +83,9 @@ class HistogramHelper {
|
||||
|
||||
// helper class to avoid extending std:: namespace
|
||||
template <typename T>
|
||||
struct get_range_type : internal::make_unsigned<T> {};
|
||||
struct get_range_type {
|
||||
using type = std::conditional_t<(sizeof(T) < sizeof(int)), unsigned int, std::make_unsigned_t<T>>;
|
||||
};
|
||||
template <typename T>
|
||||
struct get_range_type<SafeScalar<T>> : internal::make_unsigned<T> {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user