From c4ea52a9db2945d724013af428e8fe32ee9b683a Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 15 Dec 2016 12:43:51 +0100 Subject: "Nicer" solution to the private typedef problem. Gcc doesn't even error on the private typedef access. So instead of entering and exiting the public scope in the class definition, Just add a template which forces deduction of the underlying type. --- node/node.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'node/node.hpp') diff --git a/node/node.hpp b/node/node.hpp index de4e25d..d9e16d4 100644 --- a/node/node.hpp +++ b/node/node.hpp @@ -92,9 +92,7 @@ class Node typedef std::map ClientConnections; ClientConnections clients; -public: typedef std::map ClientData; -private: ClientData data; typedef std::map> ClientMessages; ClientMessages messages; -- cgit v1.2.3-70-g09d2