Commit a470e327 authored by Dominik Charousset's avatar Dominik Charousset

Fix "should be explicitly initialized..." warning

parent 47a6fd15
...@@ -33,7 +33,9 @@ class message_builder::dynamic_msg_data : public detail::message_data { ...@@ -33,7 +33,9 @@ class message_builder::dynamic_msg_data : public detail::message_data {
// nop // nop
} }
dynamic_msg_data(const dynamic_msg_data& other) : m_type_token(0xFFFFFFFF) { dynamic_msg_data(const dynamic_msg_data& other)
: detail::message_data(other),
m_type_token(0xFFFFFFFF) {
for (auto& e : other.m_elements) { for (auto& e : other.m_elements) {
add_to_type_token(e->ti->type_nr()); add_to_type_token(e->ti->type_nr());
m_elements.push_back(e->copy()); m_elements.push_back(e->copy());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment