Commit Graph

4777 Commits

Author SHA1 Message Date
Nikita Kniazev
45777098b8 Classic: Fixed compilation of match<T &>
`boost::optional<T &>` has member named `argument_type`

I do not know when it did break because defining
`BOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL`
does not solve the problem.
2017-11-12 03:07:26 +03:00
Nikita Kniazev
41fe4eb5b3 Classic: Fixed unused local typedef in dynamic/for.hpp 2017-11-12 02:50:08 +03:00
Nikita Kniazev
9dac9fb638 Classic: Fixed std::complex usage without the include
08b336d (#195) removed forward declaration but did not add the include.

Closes https://svn.boost.org/trac10/ticket/13240
2017-11-12 02:32:31 +03:00
Nikita Kniazev
ebcedd2523 Classic: Fix remove_reference usage without a namespace 2017-11-12 02:27:10 +03:00
Nikita Kniazev
03b5ab568d Spirit accidentally relays on types typedef of boost::optional
Replaces #201, fixes #249.

New `boost:optional` implementation does not contain `types` what caused
a compilation error for Qi and wrong results for Karma.

Other problem is that `not_is_variant<optional<variant<T...>>>` results in
`mpl::false_` what is unclear from it's name. While Karma relays on exactly
this behavior, Qi wrongly considers that it `mpl::true_`. I have fixed this
name ambiguity and updated Karma for the new `not_is_variant` behavior.
2017-11-10 22:05:10 +03:00
Nikita Kniazev
23531c8ab3
Merge pull request #269 from Kojoley/fix-qi-keywords-unused-parameter-warnings
Qi.Repository: keywords: Fixed unused parameter warnings
2017-11-10 03:37:07 +03:00
Nikita Kniazev
fa83daf709
Merge pull request #268 from Kojoley/fix-utree-possible_loss_of_data-warning
utree: Fixed possible loss of data warning
2017-11-10 03:35:02 +03:00
Nikita Kniazev
3439373f0c Qi.Repository: keywords: Fixed unused parameter warnings 2017-11-10 03:34:32 +03:00
Nikita Kniazev
1360fdfd16 utree: Fixed possible loss of data warning 2017-11-10 03:33:16 +03:00
Nikita Kniazev
f7049833a1 Revert "Merge pull request #201 from mxc-commons/fix_alternative"
This reverts commit 4c5b976633, reversing
changes made to 0f7b47d33d.
2017-11-10 01:20:33 +03:00
Joel de Guzman
a561124e4e
Merge pull request #266 from Kojoley/fix-x3-parse_into_container-attr-of-unused_type
X3: Fix `unused_type` attribute case in `parse_into_container`
2017-11-09 06:24:07 +08:00
Joel de Guzman
d532618914
Merge pull request #267 from Kojoley/fix-qi-reference-lazy-example
Qi.Examples: reference: Fixed lazy example
2017-11-09 05:58:49 +08:00
Nikita Kniazev
bd472f37c7 Qi.Examples: reference: Fixed lazy example
Phoenix expression used like it is a Qi expression.

I suspect it had been legal when they were belong to
the same Proto domain but not now.
2017-11-08 20:10:28 +03:00
Nikita Kniazev
ee4943d589 X3: Fix unused_type attribute case in parse_into_container
Passing `unused_type` attribute to `parse_into_container_impl::call`
produces a compilation error.

The issue was introduced in 379413a50c.
2017-11-08 19:42:47 +03:00
Nikita Kniazev
af6102948e
Merge pull request #205 from Kojoley/add-regression_real_policy_sign-to-tests-list
Karma.Tests: Added `regression_real_policy_sign.cpp` to test suite
2017-11-07 21:19:00 +03:00
Nikita Kniazev
eecbf39631
Merge pull request #264 from Kojoley/fix-x3-example-actions-missing-using-_attr
X3.Examples: actions: Missing `using x3::_attr`
2017-11-07 21:17:04 +03:00
Nikita Kniazev
ed44948e62 X3.Examples: actions: Missing using x3::_attr 2017-11-07 21:16:21 +03:00
Nikita Kniazev
47282767eb
Merge pull request #263 from Kojoley/fix-qi-example-expect-cxx11-for-loop
Qi.Examples: expect: Do not use c++11 for loop
2017-11-07 21:13:00 +03:00
Nikita Kniazev
9128cd2535 Qi.Examples: expect: Do not use c++11 for loop 2017-11-07 21:10:18 +03:00
Hartmut Kaiser
0b7b86dd7c
Merge pull request #262 from Kojoley/fix-karma-complex_number_adapt-example-missing-include
Karma.Examples: Fix complex_number_adapt compilation
2017-11-06 15:44:24 -06:00
Nikita Kniazev
591001628f Karma.Examples: Fix complex_number_adapt compilation 2017-11-06 22:45:16 +03:00
Hartmut Kaiser
1f335b9d89
Merge pull request #261 from Kojoley/fix-no_buffering_policy-copyctor
Karma: Fixed `no_buffering_policy` missing copy constructor
2017-11-06 12:05:11 -06:00
Nikita Kniazev
688f8c624b Karma: Fixed no_buffering_policy missing copy constructor
It seems that `no_buffering_policy` had a copy-paste error for 8 years.
2017-11-06 20:32:30 +03:00
Nikita Kniazev
025aa31292 Repository: subrule: Fix proto's operators kicks in on c++11 2017-11-03 19:35:19 +03:00
Nikita Kniazev
7240e1fbe7 Repository: subrule: Fix extract_sig usage
With e34a955f2f `extract_sig` changed
but `subrule` did not get an update for that change.
2017-11-03 19:27:50 +03:00
Joel de Guzman
3d2160db15
Merge pull request #256 from Kojoley/fix-qi-repository-keywords-cxx11
Qi.Repository: Fix `keywords` compilation on c++11
2017-11-01 06:06:15 +08:00
Nikita Kniazev
c240c5ecce Qi.Repository: Fix keywords compilation on c++11 2017-10-31 21:49:12 +03:00
Joel de Guzman
1e31221cdd
Merge pull request #255 from Kojoley/fix-examples-qi-reference-parse_frac_n
Qi.Examples: Fixed `parse_frac_n` in `reference.cpp`
2017-10-30 08:00:42 +08:00
Joel de Guzman
4d2241ee52
Merge pull request #254 from Kojoley/fix-x3-with_context
X3.Examples: Fix `no template named 'with_context'` error
2017-10-30 07:59:31 +08:00
Nikita Kniazev
beb28c417d Qi.Examples: Fixed parse_frac_n in reference.cpp
Error message:

```
qi/reference.cpp:126:5: note: candidate function template not viable: requires 3 arguments, but 4 were provided
    parse_frac_n(Iterator& first, Iterator const& last, Attribute& attr)
```

The issue had been introduced in 6832dc2298
where `parse_frac_n` signature was changed.
2017-10-30 02:14:46 +03:00
Nikita Kniazev
c134020c2a X3.Examples: Fix no template named 'with_context' error
`with_context` was removed in 361b12eeeb
but the examples had not been adjusted.
2017-10-30 00:55:31 +03:00
James E. King, III
c744f31222 silence coverity discovery of ignored return code from at_end 2017-10-20 16:44:10 -04:00
Joel de Guzman
5430289e4b Merge pull request #248 from m-dhooge/develop
x3::error_handler::position() CR+LF lines wrongly counted.
2017-10-10 10:43:04 +08:00
Joel de Guzman
1fcefe5bc8 Merge pull request #245 from dtardon/overflow
oss-fuzz: avoid signed integer overflow
2017-10-07 17:08:00 +08:00
Joel de Guzman
6a821ee301 Merge pull request #247 from ecatmur/ubsan-token-out-of-enum
Store id as promoted type to allow out-of-enum values
2017-10-05 21:18:15 +08:00
mdhooge
79995f7e8f x3::error_handler::position() CR+LF lines wrongly counted. 2017-10-05 09:51:09 +02:00
Edward Catmur
327b725afc Store id as promoted type to allow out-of-enum values 2017-10-03 17:00:13 +01:00
Edward Catmur
c342200867 Perform negation in unsigned type to prevent UB 2017-10-03 16:58:40 +01:00
David Tardon
3d8a80c4f3 ofz#2894 avoid signed integer overflow
/usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:86:48: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
2017-10-02 16:38:11 +02:00
Joel de Guzman
9b1495fa67 Merge pull request #244 from schra/fix-documentation
Remove as, as_string, and as_wstring from X3's documentation.
2017-10-02 15:17:19 +08:00
Andre Schroeder
88b8786b91 Remove as, as_string, and as_wstring from X3's documentation. 2017-10-01 13:00:17 +02:00
Joel de Guzman
e6c3e92eee Merge pull request #243 from ecatmur/gcc-wlogical-op
Avoid -Wlogical-op warning/error in radix_traits::is_valid
2017-09-20 10:37:07 +08:00
Ed Catmur
26356b5361 Avoid -Wlogical-op error in radix_traits::is_valid
With -Wlogical-op, gcc warns in radix_traits::is_valid with Radix <= 10:

```
boost/spirit/home/qi/numeric/detail/numeric_utils.hpp: In instantiation of ‘static bool boost::spirit::qi::detail::radix_traits<10u>::is_valid<char>(char)’:
[...]
boost/spirit/home/qi/numeric/detail/numeric_utils.hpp:107:31: warning: logical ‘and’ of mutually exclusive tests is always false [-Wlogical-op]
                 || (ch >= 'a' && ch <= static_cast<Char>('a' + Radix -10 -1))
                               ^
boost/spirit/home/qi/numeric/detail/numeric_utils.hpp:108:31: warning: logical ‘and’ of mutually exclusive tests is always false [-Wlogical-op]
                 || (ch >= 'A' && ch <= static_cast<Char>('A' + Radix -10 -1));
                               ^
```

Rather than suppressing the warning (https://github.com/boostorg/spirit/pull/77), refactor the test so that the warning is not triggered.
2017-09-19 18:51:34 +01:00
Joel de Guzman
78fe9cc42e Merge pull request #241 from dodheim/develop
Add noexcept specs to x3::variant and forward_ast
2017-08-26 07:34:25 +08:00
Adam Merz
b4e4762b6c Add noexcept specs to x3::variant and forward_ast
Add noexcept specifications to X3's variant and forward_ast
2017-08-24 18:05:38 -07:00
Joel de Guzman
66d506466e Merge pull request #240 from think-cell/thinkcell_context_constref
Context& -> Context const&
2017-08-24 01:28:37 +08:00
Han Wang
19972887f4 Context& -> Context const&
fix parsers like x3::skip(x3::space)[x3::double_] compile problem
2017-08-23 10:45:21 +02:00
Joel de Guzman
f95e5bd0e3 Merge pull request #239 from think-cell/thinkcell_with
simplify with directive
2017-08-23 03:03:52 +08:00
Han Wang
30dfb6230a simplify with directive (3): make rvalue injection mutable 2017-08-22 15:43:34 +02:00
Han Wang
6412f88813 simplify with directive (2): add test cases 2017-08-22 12:15:42 +02:00