Commit 458ea53d authored by louiz’'s avatar louiz’

Fix a compile error with GCC 5.x

fix #3366
parent 0d886d5f
......@@ -242,9 +242,9 @@ std::tuple<bool, std::vector<Database::MucLogLine>> Database::get_muc_logs(const
if (paging == Database::Paging::first)
return {complete, result};
return std::make_tuple(complete, result);
return {complete, {result.crbegin(), result.crend()}};
return std::make_tuple(complete, std::vector<Database::MucLogLine>(result.crbegin(), result.crend()));
Database::MucLogLine Database::get_muc_log(const std::string& owner, const std::string& chan_name, const std::string& server,
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