-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Conversation
42d1637
to
bdc869b
Compare
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? |
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). This is a temporary patch, before new version released. |
Thanks for the patch :). For what it's worth, this isn't a C++20 thing, this has always been ill formed. |
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]>
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]>
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]>
Describe the pull request
What does your PR fix?
Adding GCC 11 C++20 support (In basic.hpp, a few compiling error with g++11, C++20, zaphoyd/websocketpp#991)
Which triplets are supported/not supported? Have you updated the CI baseline?
I have not updated CI baseline.
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?Yes,
./vcpkg x-add-version websocketpp