From b4c0f7141266b25a0b55bc903715a7e1c4c4f1bb Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 11 Jul 2015 07:42:51 +0300 Subject: [PATCH] dsdlc: template typename fix --- .../libuavcan_dsdl_compiler/data_type_template.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/data_type_template.tmpl b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/data_type_template.tmpl index c491ec8f0d..6916653126 100644 --- a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/data_type_template.tmpl +++ b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/data_type_template.tmpl @@ -187,8 +187,8 @@ public: * Use explicit tag access if the union contains non-unique types. * Otherwise it is safer to use as<>(), to<>(), is<>(). */ - typename Tag::Type getTag() const { return Tag::Type(_tag_); } - void setTag(typename Tag::Type x) { _tag_ = ::uavcan::StorageType< TagType >::Type(x); } + typename Tag::Type getTag() const { return typename Tag::Type(_tag_); } + void setTag(typename Tag::Type x) { _tag_ = typename ::uavcan::StorageType< TagType >::Type(x); } /** * Whether the union is set to the given type. @@ -422,7 +422,7 @@ ${scope_prefix}<0>::to< typename ::uavcan::StorageType< typename ${scope_prefix} if (_tag_ != ${idx}) { _tag_ = ${idx}; - ${a.name} = ::uavcan::StorageType< typename FieldTypes::${a.name} >::Type(); + ${a.name} = typename ::uavcan::StorageType< typename FieldTypes::${a.name} >::Type(); } return ${a.name}; }