Skip to content

Commit

Permalink
clang 3.6 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Nov 27, 2023
1 parent d52be36 commit be7ec9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/boost/mysql/impl/internal/sansio/sansio_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ class sansio_algorithm

next_action read(std::uint8_t& seqnum, bool keep_parsing_state = false)
{
// buffer is attached by the algo runner
st_->reader.prepare_read(seqnum, keep_parsing_state);
return next_action::read({}); // buffer is attached by the algo runner
return next_action::read(next_action::read_args_t{{}, false});
}

template <class Serializable>
next_action write(const Serializable& msg, std::uint8_t& seqnum)
{
// buffer is attached by the algo runner
st_->writer.prepare_write(msg, seqnum);
return next_action::write({}); // buffer is attached by the algo runner
return next_action::write(next_action::write_args_t{{}, false});
}

sansio_algorithm(connection_state_data& st) noexcept : st_(&st) {}
Expand Down

0 comments on commit be7ec9f

Please sign in to comment.