Make all examples compile with GCC on Ubuntu

This commit is contained in:
Alex Hultman
2019-06-09 09:32:55 +02:00
parent 996703dde6
commit 5e787b19b3
4 changed files with 17 additions and 14 deletions
+3 -2
View File
@@ -25,14 +25,15 @@
namespace uWS {
template <bool, bool> struct WebSocketContext;
template <bool SSL>
struct AsyncSocket {
template <bool> friend struct HttpContext;
template <bool, bool> friend struct WebSocketContext;
friend struct TopicTree;
/* For now, we don't even compile on GCC without this. FIX! */
/*protected*/public:
protected:
/* Get loop data for socket */
LoopData *getLoopData() {
return (LoopData *) us_loop_ext(us_new_socket_context_loop(SSL, us_new_socket_context(SSL, (us_new_socket_t *) this)));