Skip to content

Bugfix: Update for regex 20 lookbehind test. #1407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxSagebaum
Copy link
Contributor

Removed cpp file and added cpp2 file.

Removed cpp file and added cpp2 file.
There seems to be a problem for MSVC here with "cpp2regex.h2(591): error C2668: 'std::make_reverse_iterator': ambiguous call to overloaded function". Here's 591:

    r := func(make_reverse_iterator(cur), make_reverse_match_context(ctx), true_end_func());

It seems the similar line 577 should also get this error, but doesn't because maybe that one is never invoked?

Conjecture: Maybe

- lines 577 and 591 make*iterator calls should be std:: qualified, and

- the make*iterator helpers on lines 184-189 should just be removed as they don't seem to be used?

But I'm not sure so I'll just push this update to regression tests in without any code changes
@hsutter
Copy link
Owner

hsutter commented Jul 27, 2025

Thanks! I pushed a commit that re-runs the regression tests to keep everything in sync.

While doing that, I noticed there seems to be a problem for MSVC here with cpp2regex.h2(591): error C2668: 'std::make_reverse_iterator': ambiguous call to overloaded function. Here's 591:

r := func(make_reverse_iterator(cur), make_reverse_match_context(ctx), true_end_func());

It seems the similar line 577 should also get this error, but doesn't because maybe that one is never invoked?

Conjecture: Maybe

  • lines 577 and 591 make*iterator calls should be std:: qualified, and

  • the make*iterator helpers on lines 184-189 should just be removed as they don't seem to be used?

But I'm not sure so I just pushed the update to regression tests in without any code changes.

@MaxSagebaum
Copy link
Contributor Author

I will have a look during the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants