We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a71f6 commit f3b91c9Copy full SHA for f3b91c9
src/modm/math/utils/integer_traits.hpp
@@ -39,15 +39,9 @@ using least_uint = typename modm::uint_t<Bits>::least;
39
/// @cond
40
namespace detail
41
{
42
- template<typename T>
43
- constexpr int most_digits() {
44
- return std::numeric_limits<T>::digits;
45
- }
46
-
47
- template<typename T, typename... Ts>
48
- constexpr std::enable_if_t<sizeof...(Ts), int>
49
- most_digits() {
50
- return std::max(std::numeric_limits<T>::digits, most_digits<Ts...>());
+ template<typename... Ts>
+ consteval int most_digits() {
+ return std::max({std::numeric_limits<Ts>::digits...});
51
}
52
53
/// @endcond
0 commit comments