Skip to content

Commit c4347e5

Browse files
committed
pass end iterator by const-ref
1 parent 5b3f122 commit c4347e5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

include/boost/parser/parser.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@ namespace boost { namespace parser {
24222422
typename ErrorHandler>
24232423
bool parse_impl(
24242424
Iter & first,
2425-
Sentinel last,
2425+
Sentinel const & last,
24262426
Parser const & parser,
24272427
ErrorHandler const & error_handler,
24282428
Attr & attr)
@@ -2475,7 +2475,7 @@ namespace boost { namespace parser {
24752475
typename ErrorHandler>
24762476
auto parse_impl(
24772477
Iter & first,
2478-
Sentinel last,
2478+
Sentinel const & last,
24792479
Parser const & parser,
24802480
ErrorHandler const & error_handler)
24812481
{
@@ -2531,7 +2531,7 @@ namespace boost { namespace parser {
25312531
typename Callbacks>
25322532
bool callback_parse_impl(
25332533
Iter & first,
2534-
Sentinel last,
2534+
Sentinel const & last,
25352535
Parser const & parser,
25362536
ErrorHandler const & error_handler,
25372537
Callbacks const & callbacks)
@@ -2586,7 +2586,7 @@ namespace boost { namespace parser {
25862586
typename ErrorHandler>
25872587
bool skip_parse_impl(
25882588
Iter & first,
2589-
Sentinel last,
2589+
Sentinel const & last,
25902590
Parser const & parser,
25912591
SkipParser const & skip,
25922592
ErrorHandler const & error_handler,
@@ -2636,7 +2636,7 @@ namespace boost { namespace parser {
26362636
typename ErrorHandler>
26372637
auto skip_parse_impl(
26382638
Iter & first,
2639-
Sentinel last,
2639+
Sentinel const & last,
26402640
Parser const & parser,
26412641
SkipParser const & skip,
26422642
ErrorHandler const & error_handler)
@@ -2691,7 +2691,7 @@ namespace boost { namespace parser {
26912691
typename Callbacks>
26922692
bool callback_skip_parse_impl(
26932693
Iter & first,
2694-
Sentinel last,
2694+
Sentinel const & last,
26952695
Parser const & parser,
26962696
SkipParser const & skip,
26972697
ErrorHandler const & error_handler,
@@ -2841,7 +2841,7 @@ namespace boost { namespace parser {
28412841
T if_full_parse(
28422842
I initial_first,
28432843
I & first,
2844-
S last,
2844+
S const & last,
28452845
ErrorHandler const & error_handler,
28462846
T retval)
28472847
{
@@ -9025,7 +9025,7 @@ namespace boost { namespace parser {
90259025
#endif
90269026
bool prefix_parse(
90279027
I & first,
9028-
S last,
9028+
S const & last,
90299029
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
90309030
Attr & attr,
90319031
trace trace_mode = trace::off)
@@ -9158,7 +9158,7 @@ namespace boost { namespace parser {
91589158
#endif
91599159
auto prefix_parse(
91609160
I & first,
9161-
S last,
9161+
S const & last,
91629162
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
91639163
trace trace_mode = trace::off)
91649164
{
@@ -9269,7 +9269,7 @@ namespace boost { namespace parser {
92699269
#endif
92709270
bool prefix_parse(
92719271
I & first,
9272-
S last,
9272+
S const & last,
92739273
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
92749274
parser_interface<SkipParser> const & skip,
92759275
Attr & attr,
@@ -9409,7 +9409,7 @@ namespace boost { namespace parser {
94099409
#endif
94109410
auto prefix_parse(
94119411
I & first,
9412-
S last,
9412+
S const & last,
94139413
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
94149414
parser_interface<SkipParser> const & skip,
94159415
trace trace_mode = trace::off)
@@ -9526,7 +9526,7 @@ namespace boost { namespace parser {
95269526
#endif
95279527
bool callback_prefix_parse(
95289528
I & first,
9529-
S last,
9529+
S const & last,
95309530
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
95319531
Callbacks const & callbacks,
95329532
trace trace_mode = trace::off)
@@ -9650,7 +9650,7 @@ namespace boost { namespace parser {
96509650
#endif
96519651
bool callback_prefix_parse(
96529652
I & first,
9653-
S last,
9653+
S const & last,
96549654
parser_interface<Parser, GlobalState, ErrorHandler> const & parser,
96559655
parser_interface<SkipParser> const & skip,
96569656
Callbacks const & callbacks,

0 commit comments

Comments
 (0)