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_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/node_node.cpp') diff --git a/node/node_node.cpp b/node/node_node.cpp index 56e883d..db1be1f 100644 --- a/node/node_node.cpp +++ b/node/node_node.cpp @@ -125,8 +125,8 @@ void fill_commitments_message(CMixContext& ctx, cmix_proto::Commitments& commits commits.set_ciphertext_commitment(commitment.data(), commitment.size()); } -template -void fill_realtime_pre_message(CMixContext& ctx, cmix_proto::RealPre& realpre, T const& hs, T const& ms, Node::ClientData const& data) { +template +void fill_realtime_pre_message(CMixContext& ctx, cmix_proto::RealPre& realpre, T const& hs, T const& ms, U const& data) { size_t len = get_group_element_array_size(&ctx); std::vector msv1(ms.size(), nullptr); -- cgit v1.2.3-70-g09d2