Skip to content
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

Replace Boost.Regex with the standard library #117

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lzaoral
Copy link
Member

@lzaoral lzaoral commented Mar 13, 2023

We removed the hard dependency on Boost.Regex due to the usage of regex streams when we switched to Boost.JSON in #105. Let's use what the standard library provides instead.

It was included transitively by Boost.Regex.
@lzaoral lzaoral requested a review from kdudka March 13, 2023 14:36
@lzaoral lzaoral self-assigned this Mar 13, 2023
We removed the hard dependency on Boost.Regex due to the usage of regex
streams when we switched to Boost.JSON.  Let's use what the standard
library provides instead.
... because `match[idx].str()` is equivalent to `match.str(idx)`.
@lzaoral
Copy link
Member Author

lzaoral commented Mar 13, 2023

Changing to a draft since EPEL 7 does not provide all std::regex_replace variants [1]. Especially those where fmt is a string literal.

[1] https://en.cppreference.com/w/cpp/regex/regex_replace

@lzaoral lzaoral marked this pull request as draft March 13, 2023 15:32
@lzaoral
Copy link
Member Author

lzaoral commented Mar 13, 2023

Yeah, this definitely won't work as the regex library was implemented in GCC 4.9 [1] which is newer than GCC in EPEL 7.

[1] https://en.cppreference.com/w/cpp/compiler_support/11#C.2B.2B11_library_features

@lzaoral lzaoral removed the request for review from kdudka September 12, 2023 11:46
@lzaoral
Copy link
Member Author

lzaoral commented Sep 13, 2023

@kdudka Please, let me know in the future when csdiff drops support for RHEL 7 so that I can rebase and finish this PR. Thank you!

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

Successfully merging this pull request may close these issues.

None yet

1 participant