mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
modify namespace result_of -> results
support C++14 type_traits
This commit is contained in:
parent
d386893a74
commit
bf0c7021cf
350 changed files with 2628 additions and 1912 deletions
|
@ -39,7 +39,7 @@ namespace sprout {
|
|||
SPROUT_STATIC_CONSTEXPR std::size_t next_size = Size - 1;
|
||||
SPROUT_STATIC_CONSTEXPR std::size_t shift_bits = next_size * CHAR_BIT;
|
||||
private:
|
||||
template <typename IntType>
|
||||
template<typename IntType>
|
||||
SPROUT_CONSTEXPR IntType
|
||||
impl(IntType x, unsigned char i) const {
|
||||
return bit_len_8_table[i]
|
||||
|
@ -48,7 +48,7 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
public:
|
||||
template <typename IntType>
|
||||
template<typename IntType>
|
||||
SPROUT_CONSTEXPR IntType
|
||||
operator()(IntType x) const {
|
||||
return impl(x, static_cast<unsigned char>((x >> shift_bits) & UCHAR_MAX));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue