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

[websocketpp] Patching websocketpp for c++20 support #23669

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

faserg1
Copy link
Contributor

@faserg1 faserg1 commented Mar 20, 2022

Describe the pull request

@faserg1 faserg1 force-pushed the websocketpp-cxx20-patch branch from 42d1637 to bdc869b Compare March 20, 2022 18:01
@faserg1 faserg1 marked this pull request as ready for review March 20, 2022 18:14
@LilyWangLL LilyWangLL changed the title Patching websocketpp for c++20 support [websocketpp] Patching websocketpp for c++20 support Mar 21, 2022
@LilyWangLL LilyWangLL added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Mar 21, 2022
@LilyWangLL
Copy link
Contributor

Thanks for your work. Does this change will affect other CXX version? And this change should sync on upstream https://github.com/zaphoyd/websocketpp. Could you submit an issue or PR to report this PR on upstream?

@faserg1
Copy link
Contributor Author

faserg1 commented Mar 21, 2022

This is fix because of C++20 deprecation, and fix valid for lower CXX version (https://timsong-cpp.github.io/cppwp/n4861/diff.cpp17.class#2).
As I mentioned in this issue description, there is already submitted issue zaphoyd/websocketpp#991 and fix in develop branch (zaphoyd/websocketpp@3197a52).

This is a temporary patch, before new version released.

@LilyWangLL LilyWangLL added info:reviewed Pull Request changes follow basic guidelines and removed requires:author-response labels Mar 21, 2022
@BillyONeal
Copy link
Member

Thanks for the patch :). For what it's worth, this isn't a C++20 thing, this has always been ill formed.

@BillyONeal BillyONeal merged commit 744f50c into microsoft:master Mar 21, 2022
@faserg1 faserg1 deleted the websocketpp-cxx20-patch branch March 21, 2022 21:42
@heinemml heinemml mentioned this pull request Nov 3, 2023
7 tasks
arnout pushed a commit to buildroot/buildroot that referenced this pull request Nov 4, 2023
websocketpp had some ill-formed usage of template parameters which was
finally removed in C++20. Hence build fails when building with C++20
support enabled.

The patch is already in the develop branch but no new release was
done.

There are no autobuilder failures because websocketpp is a header-only
library, and there are no packages in Buildroot that depned on
websocketpp.

A build issue was encountered when bumping an internal project to
C++20. This issue triggered quite some bug reports in the project [0]
and there are backports to other package managers like vcpkg [1] and
conan [2].

[0] zaphoyd/websocketpp#1060
[1] microsoft/vcpkg#23669
[2] conan-io/conan-center-index#15295

Signed-off-by: Michael Nosthoff <[email protected]>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <[email protected]>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Nov 8, 2023
websocketpp had some ill-formed usage of template parameters which was
finally removed in C++20. Hence build fails when building with C++20
support enabled.

The patch is already in the develop branch but no new release was
done.

There are no autobuilder failures because websocketpp is a header-only
library, and there are no packages in Buildroot that depned on
websocketpp.

A build issue was encountered when bumping an internal project to
C++20. This issue triggered quite some bug reports in the project [0]
and there are backports to other package managers like vcpkg [1] and
conan [2].

[0] zaphoyd/websocketpp#1060
[1] microsoft/vcpkg#23669
[2] conan-io/conan-center-index#15295

Signed-off-by: Michael Nosthoff <[email protected]>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <[email protected]>
(cherry picked from commit 9ac1a76)
Signed-off-by: Peter Korsgaard <[email protected]>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Nov 8, 2023
websocketpp had some ill-formed usage of template parameters which was
finally removed in C++20. Hence build fails when building with C++20
support enabled.

The patch is already in the develop branch but no new release was
done.

There are no autobuilder failures because websocketpp is a header-only
library, and there are no packages in Buildroot that depned on
websocketpp.

A build issue was encountered when bumping an internal project to
C++20. This issue triggered quite some bug reports in the project [0]
and there are backports to other package managers like vcpkg [1] and
conan [2].

[0] zaphoyd/websocketpp#1060
[1] microsoft/vcpkg#23669
[2] conan-io/conan-center-index#15295

Signed-off-by: Michael Nosthoff <[email protected]>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <[email protected]>
(cherry picked from commit 9ac1a76)
Signed-off-by: Peter Korsgaard <[email protected]>
evilquinn added a commit to evilquinn/projeul that referenced this pull request Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants