update boost on linux
This commit is contained in:
@@ -70,7 +70,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
|
||||
template <typename Iterator, typename Context>
|
||||
bool parse_main(Iterator& first, Iterator const& last
|
||||
, Context& context, T& attr) const
|
||||
, Context const& context, T& attr) const
|
||||
{
|
||||
x3::skip_over(first, last, context);
|
||||
return (n_ && policies.parse_true(first, last, attr, get_case_compare<encoding>(context)))
|
||||
@@ -79,7 +79,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
|
||||
template <typename Iterator, typename Context>
|
||||
bool parse(Iterator& first, Iterator const& last
|
||||
, Context& context, unused_type, T& attr) const
|
||||
, Context const& context, unused_type, T& attr) const
|
||||
{
|
||||
return parse_main(first, last, context, attr);
|
||||
}
|
||||
@@ -114,6 +114,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
false_type const false_ = { false };
|
||||
}
|
||||
|
||||
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
|
||||
namespace standard_wide
|
||||
{
|
||||
typedef bool_parser<bool, char_encoding::standard_wide> bool_type;
|
||||
@@ -125,6 +126,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
typedef literal_bool_parser<bool, char_encoding::standard_wide> false_type;
|
||||
false_type const false_ = { false };
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace ascii
|
||||
{
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
==============================================================================*/
|
||||
#if !defined(SPIRIT_QI_BOOL_POLICIES_SEP_29_2009_0710AM)
|
||||
#define SPIRIT_QI_BOOL_POLICIES_SEP_29_2009_0710AM
|
||||
#if !defined(BOOST_SPIRIT_X3_BOOL_POLICIES_SEP_29_2009_0710AM)
|
||||
#define BOOST_SPIRIT_X3_BOOL_POLICIES_SEP_29_2009_0710AM
|
||||
|
||||
#include <boost/spirit/home/x3/string/detail/string_parse.hpp>
|
||||
#include <boost/spirit/home/x3/support/traits/move_to.hpp>
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
|
||||
template <typename Iterator, typename Context>
|
||||
bool parse(Iterator& first, Iterator const& last
|
||||
, Context& context, unused_type, T& attr_) const
|
||||
, Context const& context, unused_type, T& attr_) const
|
||||
{
|
||||
x3::skip_over(first, last, context);
|
||||
return extract_real<T, RealPolicies>::parse(first, last, attr_, policies);
|
||||
@@ -36,7 +36,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
|
||||
template <typename Iterator, typename Context, typename Attribute>
|
||||
bool parse(Iterator& first, Iterator const& last
|
||||
, Context& context, unused_type, Attribute& attr_param) const
|
||||
, Context const& context, unused_type, Attribute& attr_param) const
|
||||
{
|
||||
// this case is called when Attribute is not T
|
||||
T attr_;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
==============================================================================*/
|
||||
#if !defined(SPIRIT_REAL_POLICIES_APRIL_17_2006_1158PM)
|
||||
#define SPIRIT_REAL_POLICIES_APRIL_17_2006_1158PM
|
||||
#if !defined(BOOST_SPIRIT_X3_REAL_POLICIES_APRIL_17_2006_1158PM)
|
||||
#define BOOST_SPIRIT_X3_REAL_POLICIES_APRIL_17_2006_1158PM
|
||||
|
||||
#include <boost/spirit/home/x3/string/detail/string_parse.hpp>
|
||||
#include <boost/spirit/home/x3/support/numeric_utils/extract_int.hpp>
|
||||
@@ -73,22 +73,9 @@ namespace boost { namespace spirit { namespace x3
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// The parse_nan() and parse_inf() functions get called whenever:
|
||||
//
|
||||
// - a number to parse does not start with a digit (after having
|
||||
// successfully parsed an optional sign)
|
||||
//
|
||||
// or
|
||||
//
|
||||
// - after a floating point number of the value 1 (having no
|
||||
// exponential part and a fractional part value of 0) has been
|
||||
// parsed.
|
||||
//
|
||||
// The first call allows to recognize representations of NaN or Inf
|
||||
// starting with a non-digit character (such as NaN, Inf, QNaN etc.).
|
||||
//
|
||||
// The second call allows to recognize representation formats starting
|
||||
// with a 1.0 (such as 1.0#NAN or 1.0#INF etc.).
|
||||
// The parse_nan() and parse_inf() functions get called whenever
|
||||
// a number to parse does not start with a digit (after having
|
||||
// successfully parsed an optional sign).
|
||||
//
|
||||
// The functions should return true if a Nan or Inf has been found. In
|
||||
// this case the attr should be set to the matched value (NaN or
|
||||
@@ -112,7 +99,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
// nan[(...)] ?
|
||||
if (detail::string_parse("nan", "NAN", first, last, unused))
|
||||
{
|
||||
if (*first == '(')
|
||||
if (first != last && *first == '(')
|
||||
{
|
||||
// skip trailing (...) part
|
||||
Iterator i = first;
|
||||
|
||||
Reference in New Issue
Block a user