Skip to content

Commit

Permalink
Merge pull request #308 from redboltz/fix_300
Browse files Browse the repository at this point in the history
Fixed #300.
  • Loading branch information
redboltz authored Jun 29, 2019
2 parents dd67cc7 + 927f83d commit 2d3c0ac
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions include/mqtt/v5_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ class connect_message {
1 + // keep alive
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -428,8 +428,8 @@ class connack_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -570,8 +570,8 @@ class basic_publish_message {
qos == qos::at_most_once ? 0U : 1U + // packet id
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -882,8 +882,8 @@ struct basic_puback_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1034,8 +1034,8 @@ struct basic_pubrec_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1186,8 +1186,8 @@ struct basic_pubrel_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1416,8 +1416,8 @@ struct basic_pubcomp_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1579,8 +1579,8 @@ class basic_subscribe_message {
1 + // packet id
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1743,8 +1743,8 @@ class basic_suback_message {
1 + // packet id
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -1897,8 +1897,8 @@ class basic_unsubscribe_message {
1 + // packet id
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -2052,8 +2052,8 @@ class basic_unsuback_message {
1 + // packet id
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -2206,8 +2206,8 @@ struct disconnect_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down Expand Up @@ -2347,8 +2347,8 @@ struct auth_message {
1 + // reason code
1 + // property length
std::accumulate(
props.begin(),
props.end(),
props_.begin(),
props_.end(),
0U,
[](std::size_t total, property_variant const& pv) {
return total + v5::num_of_const_buffer_sequence(pv);
Expand Down

0 comments on commit 2d3c0ac

Please sign in to comment.