mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 22:33:33 +08:00
Streaming operator for generated types was moved into the type's namespace
This commit is contained in:
@@ -249,6 +249,13 @@ ${define_yaml_streamer(t.cpp_full_type_name, t.fields)}
|
||||
|
||||
}
|
||||
|
||||
% for nsc in t.cpp_namespace_components:
|
||||
namespace ${nsc}
|
||||
{
|
||||
% endfor
|
||||
namespace
|
||||
{
|
||||
|
||||
<%def name="define_streaming_operator(type_name)">
|
||||
template <typename Stream>
|
||||
inline Stream& operator<<(Stream& s, ${type_name}::ParameterType obj)
|
||||
@@ -264,3 +271,8 @@ ${define_streaming_operator(t.cpp_full_type_name + '::Response')}
|
||||
${define_streaming_operator(t.cpp_full_type_name)}
|
||||
% endif
|
||||
|
||||
}
|
||||
% for nsc in t.cpp_namespace_components:
|
||||
}
|
||||
% endfor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user