mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Get rid of <limits> dependency
This commit is contained in:
parent
faaafc7e12
commit
5328907f7f
@ -31,7 +31,6 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <limits>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -274,9 +273,8 @@ struct convert_to_int_impl2 {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
struct convert_to_int_impl2<T, true> {
|
struct convert_to_int_impl2<T, true> {
|
||||||
enum {
|
enum {
|
||||||
// Don't convert numeric types.
|
// Don't convert arithmetic types.
|
||||||
value = convert_to_int_impl<
|
value = convert_to_int_impl<T, !std::is_arithmetic<T>::value>::value
|
||||||
T, !std::numeric_limits<T>::is_specialized>::value
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user