update boost on linux
This commit is contained in:
@@ -38,6 +38,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
using standard::char_;
|
||||
using standard::lit;
|
||||
|
||||
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
|
||||
namespace standard_wide
|
||||
{
|
||||
typedef any_char<char_encoding::standard_wide> char_type;
|
||||
@@ -49,6 +50,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
return { ch };
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace ascii
|
||||
{
|
||||
@@ -103,6 +105,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
}
|
||||
};
|
||||
|
||||
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
|
||||
template <>
|
||||
struct as_parser<wchar_t>
|
||||
{
|
||||
@@ -117,6 +120,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
return { ch };
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
template <>
|
||||
struct as_parser<char [2]>
|
||||
@@ -133,6 +137,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
}
|
||||
};
|
||||
|
||||
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
|
||||
template <>
|
||||
struct as_parser<wchar_t [2]>
|
||||
{
|
||||
@@ -147,6 +152,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
return { ch[0] };
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,9 @@ namespace boost { namespace spirit { namespace x3
|
||||
/***/
|
||||
|
||||
BOOST_SPIRIT_X3_CHAR_CLASSES(standard)
|
||||
#ifndef BOOST_SPIRIT_NO_STANDARD_WIDE
|
||||
BOOST_SPIRIT_X3_CHAR_CLASSES(standard_wide)
|
||||
#endif
|
||||
BOOST_SPIRIT_X3_CHAR_CLASSES(ascii)
|
||||
BOOST_SPIRIT_X3_CHAR_CLASSES(iso8859_1)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
: from(from_), to(to_) {}
|
||||
|
||||
template <typename Char, typename Context>
|
||||
bool test(Char ch_, Context& context) const
|
||||
bool test(Char ch_, Context const& context) const
|
||||
{
|
||||
|
||||
char_type ch = char_type(ch_); // optimize for token based parsing
|
||||
@@ -115,7 +115,7 @@ namespace boost { namespace spirit { namespace x3
|
||||
struct get_info<char_set<Encoding, Attribute>>
|
||||
{
|
||||
typedef std::string result_type;
|
||||
std::string operator()(char_set<Encoding, Attribute> const& p) const
|
||||
std::string operator()(char_set<Encoding, Attribute> const& /* p */) const
|
||||
{
|
||||
return "char-set";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user