Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2017-09-05 09:35:14 +0300
committereidheim <eidheim@gmail.com>2017-09-05 09:35:14 +0300
commit8f86f3927042b15a2408873d9e582dea511c42bc (patch)
tree91a63b3b31e3323ef827bd6db3ac756528356a12 /ws_examples.cpp
parentdefdcbf6e28118e51e4a0bc70bf7ca79bf84a3a5 (diff)
Changed typedef constructions to type alias
Diffstat (limited to 'ws_examples.cpp')
-rw-r--r--ws_examples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ws_examples.cpp b/ws_examples.cpp
index 3ae34e2..e906bb0 100644
--- a/ws_examples.cpp
+++ b/ws_examples.cpp
@@ -3,8 +3,8 @@
using namespace std;
-typedef SimpleWeb::SocketServer<SimpleWeb::WS> WsServer;
-typedef SimpleWeb::SocketClient<SimpleWeb::WS> WsClient;
+using WsServer = SimpleWeb::SocketServer<SimpleWeb::WS>;
+using WsClient = SimpleWeb::SocketClient<SimpleWeb::WS>;
int main() {
// WebSocket (WS)-server at port 8080 using 1 thread