File: 0001-Make-sure-all-used-placeholders-are-in-scope.patch

package info (click to toggle)
autobahn-cpp 17.5.1%2Bgit7cc5d37-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 808 kB
  • sloc: cpp: 2,133; makefile: 3
file content (30 lines) | stat: -rw-r--r-- 1,514 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From eac22bd61117ac18b5efee3c6da16a97835055de Mon Sep 17 00:00:00 2001
From: Robin Linden <dev@robinlinden.eu>
Date: Fri, 2 Oct 2020 23:49:29 +0200
Subject: Make sure all used placeholders are in scope

---
 autobahn/wamp_websocketpp_websocket_transport.ipp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autobahn/wamp_websocketpp_websocket_transport.ipp b/autobahn/wamp_websocketpp_websocket_transport.ipp
index 78398aa..9a8bdb2 100644
--- a/autobahn/wamp_websocketpp_websocket_transport.ipp
+++ b/autobahn/wamp_websocketpp_websocket_transport.ipp
@@ -48,11 +48,12 @@ namespace autobahn {
     {
         // Bind the handlers we are using
         using websocketpp::lib::placeholders::_1;
+        using websocketpp::lib::placeholders::_2;
         using websocketpp::lib::bind;
         m_client.set_open_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_open, this, _1));
         m_client.set_close_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_close, this, _1));
         m_client.set_fail_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_fail, this, _1));
-        m_client.set_message_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_message, this, ::_1, ::_2));
+        m_client.set_message_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_message, this, _1, _2));
         if(!debug_enabled) {
             m_client.clear_access_channels(websocketpp::log::alevel::all);
         }
-- 
2.20.1