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

C++: OR-Tools use a custom absl:string_view based version of RE2 #3201

Closed
Mizux opened this issue Mar 21, 2022 · 3 comments
Closed

C++: OR-Tools use a custom absl:string_view based version of RE2 #3201

Mizux opened this issue Mar 21, 2022 · 3 comments
Assignees
Labels
Bug Feature Request Missing Feature/Wrapper Lang: C++ Native implementation issue
Milestone

Comments

@Mizux
Copy link
Collaborator

Mizux commented Mar 21, 2022

Currently OR-Tools use a custom version of RE2 using absl::string_view instead of re2::StringPiece unfortunatelly this make difficult for the OSS community to integrate or-tools against a system wide installation of re2...

ref: https://github.com/google/or-tools/blob/stable/patches/re2-2021-11-01.patch

@Mizux Mizux added Bug Feature Request Missing Feature/Wrapper Lang: C++ Native implementation issue labels Mar 21, 2022
@Mizux Mizux added this to the v9.4 milestone Mar 21, 2022
@Mizux Mizux self-assigned this Mar 21, 2022
@Mizux Mizux changed the title OR-Tools use a absl based version of RE2 OR-Tools use an absl:string_view based version of RE2 Mar 21, 2022
@Mizux
Copy link
Collaborator Author

Mizux commented Mar 23, 2022

Seems if RE2 compiled in C++17, it should have support for string_view...
see:
https://github.com/google/re2/blob/4c7b561f1f2784fea7a4ac415575c3b080518006/re2/stringpiece.h#L55-L58

Macro name Feature Value Header Std
__cpp_lib_string_view std::string_view 201606L <string>
<string_view>
( C++17)
__cpp_lib_string_view ConstexprIterator 201803L <string>
<string_view>
(C++20)

std::string_view
<string>
<string_view>
ConstexprIterator

ref: https://en.cppreference.com/w/cpp/feature_test

@Mizux Mizux changed the title OR-Tools use an absl:string_view based version of RE2 c++: OR-Tools use a custom absl:string_view based version of RE2 Mar 24, 2022
Mizux added a commit that referenced this issue Mar 24, 2022
Mizux added a commit that referenced this issue Mar 24, 2022
@Mizux Mizux changed the title c++: OR-Tools use a custom absl:string_view based version of RE2 C++: OR-Tools use a custom absl:string_view based version of RE2 Mar 24, 2022
Mizux added a commit that referenced this issue Mar 24, 2022
Mizux added a commit that referenced this issue Mar 24, 2022
Mizux added a commit that referenced this issue Mar 25, 2022
@Mizux Mizux closed this as completed Mar 30, 2022
@StefanBruens
Copy link
Contributor

As far as I can see, this has not been merged, nor is there any open PR.

@Mizux
Copy link
Collaborator Author

Mizux commented Apr 25, 2022

@StefanBruens AFAIK this has been pushed on master...
see: 0d3572b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Feature Request Missing Feature/Wrapper Lang: C++ Native implementation issue
Projects
None yet
Development

No branches or pull requests

2 participants