1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-10-05 13:00:00 +00:00

fix for clang 3.2

This commit is contained in:
bolero-MURAKAMI 2012-05-14 15:42:54 +09:00
commit b67695ec6b
28 changed files with 133 additions and 75 deletions

View file

@ -22,6 +22,11 @@ namespace sprout {
struct repeat_p
: public sprout::weed::parser_base
{
public:
template<typename Context, typename Iterator>
struct attribute;
template<typename Context, typename Iterator>
struct result;
private:
template<typename Context, typename Iterator>
struct eval {

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_WEED_PARSER_NUMERIC_BIN_HPP
#define SPROUT_WEED_PARSER_NUMERIC_BIN_HPP
#include <cstddef>
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/integer/integer_digits.hpp>
@ -11,7 +12,7 @@ namespace sprout {
//
// bin
//
SPROUT_STATIC_CONSTEXPR auto bin = sprout::weed::uint_p<std::uintmax_t, 2, -1>();
SPROUT_STATIC_CONSTEXPR auto bin = sprout::weed::uint_p<std::uintmax_t, 2, static_cast<std::size_t>(-1)>();
//
// bin8

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_WEED_PARSER_NUMERIC_HEX_HPP
#define SPROUT_WEED_PARSER_NUMERIC_HEX_HPP
#include <cstddef>
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/integer/integer_digits.hpp>
@ -11,7 +12,7 @@ namespace sprout {
//
// hex
//
SPROUT_STATIC_CONSTEXPR auto hex = sprout::weed::uint_p<std::uintmax_t, 16, -1>();
SPROUT_STATIC_CONSTEXPR auto hex = sprout::weed::uint_p<std::uintmax_t, 16, static_cast<std::size_t>(-1)>();
//
// hex8

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_WEED_PARSER_NUMERIC_INT_HPP
#define SPROUT_WEED_PARSER_NUMERIC_INT_HPP
#include <cstddef>
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/integer/integer_digits.hpp>
@ -11,7 +12,7 @@ namespace sprout {
//
// int_
//
SPROUT_STATIC_CONSTEXPR auto int_ = sprout::weed::int_p<std::intmax_t, 10, 1, -1>();
SPROUT_STATIC_CONSTEXPR auto int_ = sprout::weed::int_p<std::intmax_t, 10, 1, static_cast<std::size_t>(-1)>();
//
// int8

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_WEED_PARSER_NUMERIC_OCT_HPP
#define SPROUT_WEED_PARSER_NUMERIC_OCT_HPP
#include <cstddef>
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/integer/integer_digits.hpp>
@ -11,7 +12,7 @@ namespace sprout {
//
// oct
//
SPROUT_STATIC_CONSTEXPR auto oct = sprout::weed::uint_p<std::uintmax_t, 8, -1>();
SPROUT_STATIC_CONSTEXPR auto oct = sprout::weed::uint_p<std::uintmax_t, 8, static_cast<std::size_t>(-1)>();
//
// oct8

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_WEED_PARSER_NUMERIC_UINT_HPP
#define SPROUT_WEED_PARSER_NUMERIC_UINT_HPP
#include <cstddef>
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/integer/integer_digits.hpp>
@ -11,7 +12,7 @@ namespace sprout {
//
// uint_
//
SPROUT_STATIC_CONSTEXPR auto uint_ = sprout::weed::uint_p<std::uintmax_t, 10, 1, -1>();
SPROUT_STATIC_CONSTEXPR auto uint_ = sprout::weed::uint_p<std::uintmax_t, 10, 1, static_cast<std::size_t>(-1)>();
//
// uint8

View file

@ -15,7 +15,7 @@ namespace sprout {
//
template<typename T, typename Iterator, typename Context, typename = void>
struct limit_of
: public std::integral_constant<std::size_t, -1>
: public std::integral_constant<std::size_t, static_cast<std::size_t>(-1)>
{};
template<typename T, typename Iterator, typename Context>
struct limit_of<T const, Iterator, Context>