mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
workaround for no c++11 numeric_limits
This commit is contained in:
parent
ce16e24637
commit
7a1974742a
110 changed files with 727 additions and 436 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include <cstddef>
|
||||
#include <climits>
|
||||
#include <limits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/detail/integer.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -33,9 +33,9 @@ namespace sprout {
|
|||
|
||||
#define SPROUT_LOW_BITS_MASK_SPECIALIZE(Type) \
|
||||
template<> \
|
||||
struct low_bits_mask_t<std::numeric_limits<Type>::digits> { \
|
||||
struct low_bits_mask_t<sprout::numeric_limits<Type>::digits> { \
|
||||
public: \
|
||||
typedef std::numeric_limits<Type> limits_type; \
|
||||
typedef sprout::numeric_limits<Type> limits_type; \
|
||||
typedef typename sprout::detail::uint_t<limits_type::digits>::least least; \
|
||||
typedef typename sprout::detail::uint_t<limits_type::digits>::fast fast; \
|
||||
public: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue