Skip to content

Commit

Permalink
[websocketpp] fix cpp20.patch (microsoft#34898)
Browse files Browse the repository at this point in the history
cpp20.patch backports the patch [0] from the upstream repo but is incomplete
as it left out the part for websocketpp/roles/server_endpoint.hpp.

[0] zaphoyd/websocketpp@3197a52
  • Loading branch information
heinemml authored Nov 6, 2023
1 parent 8320c38 commit 01acfdf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
27 changes: 27 additions & 0 deletions ports/websocketpp/cxx20.patch
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,30 @@ index 8451413..4c9d836 100644
: m_static_channels(other.m_static_channels)
, m_dynamic_channels(other.m_dynamic_channels)
, m_out(other.m_out)
diff --git a/websocketpp/roles/server_endpoint.hpp b/websocketpp/roles/server_endpoint.hpp
index 4a5865eff..04fee18f9 100644
--- a/websocketpp/roles/server_endpoint.hpp
+++ b/websocketpp/roles/server_endpoint.hpp
@@ -75,11 +75,11 @@ class server : public endpoint<connection<config>,config> {
}

/// Destructor
- ~server<config>() {}
+ ~server() {}

#ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
// no copy constructor because endpoints are not copyable
- server<config>(server<config> &) = delete;
+ server(server<config> &) = delete;

// no copy assignment operator because endpoints are not copyable
server<config> & operator=(server<config> const &) = delete;
@@ -87,7 +87,7 @@ class server : public endpoint<connection<config>,config> {

#ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
/// Move constructor
- server<config>(server<config> && o) : endpoint<connection<config>,config>(std::move(o)) {}
+ server(server<config> && o) : endpoint<connection<config>,config>(std::move(o)) {}

#ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
// no move assignment operator because of const member variables
2 changes: 1 addition & 1 deletion ports/websocketpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "websocketpp",
"version": "0.8.2",
"port-version": 2,
"port-version": 3,
"description": "Library that implements RFC6455 The WebSocket Protocol",
"homepage": "https://github.com/zaphoyd/websocketpp",
"documentation": "http://docs.websocketpp.org/",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8946,7 +8946,7 @@
},
"websocketpp": {
"baseline": "0.8.2",
"port-version": 2
"port-version": 3
},
"webview2": {
"baseline": "1.0.2088.41",
Expand Down
5 changes: 5 additions & 0 deletions versions/w-/websocketpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "eb46cff6f9a23caefbc56ac8089d1fbee523e13e",
"version": "0.8.2",
"port-version": 3
},
{
"git-tree": "70d3b037559f580fa52bc50bb2dc26e58f5107d9",
"version": "0.8.2",
Expand Down

0 comments on commit 01acfdf

Please sign in to comment.