From 38dc895a9b29ca6b860bc3889da38d0ceb340c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 3 Jul 2018 20:15:36 +0200 Subject: Fix a compile error with GCC 5.x fix #3366 --- src/database/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/database') 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> 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(result.crbegin(), result.crend())); } Database::MucLogLine Database::get_muc_log(const std::string& owner, const std::string& chan_name, const std::string& server, -- cgit v1.2.3