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

Use boost::core::string_view #2363

Closed
vinniefalco opened this issue Dec 16, 2021 · 3 comments · Fixed by #2451
Closed

Use boost::core::string_view #2363

vinniefalco opened this issue Dec 16, 2021 · 3 comments · Fixed by #2451
Assignees
Labels
API Change A breaking change

Comments

@vinniefalco
Copy link
Member

We need to deprecate BOOST_BEAST_USE_STD_STRING_VIEW and change the type to use boost::core::string_view

@vinniefalco vinniefalco added the API Change A breaking change label Dec 16, 2021
@madmongo1 madmongo1 self-assigned this Dec 16, 2021
@vinniefalco
Copy link
Member Author

isn't this done?

@sehe
Copy link
Collaborator

sehe commented Jun 10, 2022

@vinniefalco

Only partially. We replaced boost::string_view with boost::core::string_view.

I wasn't aware of a desire to also get rid of BEAST_USE_STD_STRING_VIEW - for which I never did impact analysis.

Checking back in history suggests that is no longer a realistic desire to support standalone ASIO. Therefore, I so no immediate reason to avoid tie ourselves to Boost Core string_view. In terms of compatibility it is already the Rosetta Stone.

It seems a little impact analysis is all that's needed here.

@eiderdaus
Copy link

The message "BOOST_BEAST_USE_STD_STRING_VIEW is deprecated, use BOOST_NO_CXX17_HDR_STRING_VIEW instead" does not make much sense. Defining or undefining BOOST_NO_CXX17_HDR_STRING_VIEW will not bring back BOOST_BEAST_USE_STD_STRING_VIEW's behavior which has been removed obviously. Also it is my understanding whether BOOST_NO_CXX17_HDR_STRING_VIEW is defined should be determined by Boost's build system and nothing a user should tamper with. A better message would be "BOOST_BEAST_USE_STD_STRING_VIEW does not work anymore, stop using it".

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

Successfully merging a pull request may close this issue.

4 participants