Skip to content

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

Merged
BillyONeal merged 1 commit intomicrosoft:masterfrom
faserg1:websocketpp-cxx20-patch
Mar 21, 2022
Merged

[websocketpp] Patching websocketpp for c++20 support#23669
BillyONeal merged 1 commit intomicrosoft:masterfrom
faserg1:websocketpp-cxx20-patch

Conversation

@faserg1
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. and removed requires:author-response labels Mar 21, 2022
@BillyONeal
Copy link
Copy Markdown
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 <buildroot@heine.tech>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
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 <buildroot@heine.tech>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9ac1a76)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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 <buildroot@heine.tech>
[Thomas: extend commit log with details provided by Michael.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9ac1a76)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants