diff options
author | louiz’ <louiz@louiz.org> | 2018-07-03 20:15:36 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-07-10 19:35:19 +0200 |
commit | 2530ceb67e81e65c33dd5132629213b08b56f4f9 (patch) | |
tree | 9ea693647e648121dece59230bb4356b078dcf5d /src/database | |
parent | e39434b9a79db013275d575e68ef75cd803479aa (diff) | |
download | biboumi-2530ceb67e81e65c33dd5132629213b08b56f4f9.tar.gz biboumi-2530ceb67e81e65c33dd5132629213b08b56f4f9.tar.bz2 biboumi-2530ceb67e81e65c33dd5132629213b08b56f4f9.tar.xz biboumi-2530ceb67e81e65c33dd5132629213b08b56f4f9.zip |
Fix a compile error with GCC 5.x
fix #3366
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index 6e08ee1..4867f52 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -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); else - 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, |