update boost

This commit is contained in:
2023-11-24 12:56:13 -06:00
parent cfc99971af
commit 19d727037a
9260 changed files with 849256 additions and 299957 deletions

View File

@@ -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_X3_BOOL_SEP_29_2009_0709AM)
#define SPIRIT_X3_BOOL_SEP_29_2009_0709AM
#ifndef BOOST_SPIRIT_X3_NUMERIC_BOOL_HPP
#define BOOST_SPIRIT_X3_NUMERIC_BOOL_HPP
#include <boost/spirit/home/x3/core/parser.hpp>
#include <boost/spirit/home/x3/core/skip_over.hpp>
@@ -21,10 +21,10 @@ namespace boost { namespace spirit { namespace x3
typedef T attribute_type;
static bool const has_attribute = true;
bool_parser()
constexpr bool_parser()
: policies() {}
bool_parser(BoolPolicies const& policies)
constexpr bool_parser(BoolPolicies const& policies)
: policies(policies) {}
template <typename Iterator, typename Context>
@@ -61,11 +61,11 @@ namespace boost { namespace spirit { namespace x3
static bool const has_attribute = true;
template <typename Value>
literal_bool_parser(Value const& n)
constexpr literal_bool_parser(Value const& n)
: policies(), n_(n) {}
template <typename Value>
literal_bool_parser(Value const& n, BoolPolicies const& policies)
constexpr literal_bool_parser(Value const& n, BoolPolicies const& policies)
: policies(policies), n_(n) {}
template <typename Iterator, typename Context>
@@ -105,51 +105,51 @@ namespace boost { namespace spirit { namespace x3
namespace standard
{
typedef bool_parser<bool, char_encoding::standard> bool_type;
bool_type const bool_ = {};
constexpr bool_type bool_ = {};
typedef literal_bool_parser<bool, char_encoding::standard> true_type;
true_type const true_ = { true };
constexpr true_type true_ = { true };
typedef literal_bool_parser<bool, char_encoding::standard> false_type;
false_type const false_ = { false };
constexpr false_type false_ = { false };
}
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
namespace standard_wide
{
typedef bool_parser<bool, char_encoding::standard_wide> bool_type;
bool_type const bool_ = {};
constexpr bool_type bool_ = {};
typedef literal_bool_parser<bool, char_encoding::standard_wide> true_type;
true_type const true_ = { true };
constexpr true_type true_ = { true };
typedef literal_bool_parser<bool, char_encoding::standard_wide> false_type;
false_type const false_ = { false };
constexpr false_type false_ = { false };
}
#endif
namespace ascii
{
typedef bool_parser<bool, char_encoding::ascii> bool_type;
bool_type const bool_ = {};
constexpr bool_type bool_ = {};
typedef literal_bool_parser<bool, char_encoding::ascii> true_type;
true_type const true_ = { true };
constexpr true_type true_ = { true };
typedef literal_bool_parser<bool, char_encoding::ascii> false_type;
false_type const false_ = { false };
constexpr false_type false_ = { false };
}
namespace iso8859_1
{
typedef bool_parser<bool, char_encoding::iso8859_1> bool_type;
bool_type const bool_ = {};
constexpr bool_type bool_ = {};
typedef literal_bool_parser<bool, char_encoding::iso8859_1> true_type;
true_type const true_ = { true };
constexpr true_type true_ = { true };
typedef literal_bool_parser<bool, char_encoding::iso8859_1> false_type;
false_type const false_ = { false };
constexpr false_type false_ = { false };
}
using standard::bool_;

View File

@@ -42,7 +42,7 @@ namespace boost { namespace spirit { namespace x3
#define BOOST_SPIRIT_X3_INT_PARSER(int_type, name) \
typedef int_parser<int_type> name##type; \
name##type const name = {}; \
constexpr name##type name = {}; \
/***/
BOOST_SPIRIT_X3_INT_PARSER(long, long_)

View File

@@ -20,10 +20,10 @@ namespace boost { namespace spirit { namespace x3
typedef T attribute_type;
static bool const has_attribute = true;
real_parser()
constexpr real_parser()
: policies() {}
real_parser(RealPolicies const& policies)
constexpr real_parser(RealPolicies const& policies)
: policies(policies) {}
template <typename Iterator, typename Context>
@@ -52,10 +52,13 @@ namespace boost { namespace spirit { namespace x3
};
typedef real_parser<float> float_type;
float_type const float_ = {};
constexpr float_type float_ = {};
typedef real_parser<double> double_type;
double_type const double_ = {};
constexpr double_type double_ = {};
typedef real_parser<long double> long_double_type;
constexpr long_double_type long_double = {};
}}}

View File

@@ -43,7 +43,7 @@ namespace boost { namespace spirit { namespace x3
#define BOOST_SPIRIT_X3_UINT_PARSER(uint_type, name) \
typedef uint_parser<uint_type> name##type; \
name##type const name = {}; \
constexpr name##type name = {}; \
/***/
BOOST_SPIRIT_X3_UINT_PARSER(unsigned long, ulong_)
@@ -60,7 +60,7 @@ namespace boost { namespace spirit { namespace x3
#define BOOST_SPIRIT_X3_UINT_PARSER(uint_type, radix, name) \
typedef uint_parser<uint_type, radix> name##type; \
name##type const name = name##type(); \
constexpr name##type name = name##type(); \
/***/
BOOST_SPIRIT_X3_UINT_PARSER(unsigned, 2, bin)