From c4f47e0b70490dcab76d184806a4478de797d80e Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 4 Mar 2014 22:31:15 +0400 Subject: [PATCH] Disabled instantiation of Service types --- libuavcan/dsdl_compiler/data_type_template.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libuavcan/dsdl_compiler/data_type_template.hpp b/libuavcan/dsdl_compiler/data_type_template.hpp index 2ad377ed54..58c4e67841 100644 --- a/libuavcan/dsdl_compiler/data_type_template.hpp +++ b/libuavcan/dsdl_compiler/data_type_template.hpp @@ -169,6 +169,11 @@ ${'::uavcan::TailArrayOptDisabled' if (idx + 1) < len(fields) else 'tao_mode'}); % endif return signature; } + +% if t.kind == t.KIND_SERVICE: +private: + ${t.short_name}(); // Don't create objects of this type. Use Request/Response instead. +% endif }; <%def name="define_out_of_line_constants(scope_prefix, constants)">