diff --git a/src/templates/message_parser.cpp.j2 b/src/templates/message_parser.cpp.j2 index 7408fe2..ef01dc5 100644 --- a/src/templates/message_parser.cpp.j2 +++ b/src/templates/message_parser.cpp.j2 @@ -4,7 +4,6 @@ namespace MQTTTopics { - MessageParser::Variables::Variables( {%- for variable in variables -%} const std::string& {{ variable }} diff --git a/src/templates/message_parser.h.j2 b/src/templates/message_parser.h.j2 index 8e00cfd..b731ec3 100644 --- a/src/templates/message_parser.h.j2 +++ b/src/templates/message_parser.h.j2 @@ -16,7 +16,6 @@ class MessageParser public: typedef void (*parse_t)(const std::string& payload, void*); -private: struct Variables { Variables( @@ -33,6 +32,7 @@ private: {%- endfor %} }; +private: struct TopicNode { std::unique_ptr parse;