aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/gerbera/gerbera/0001-Fix-build-with-fmt-9.0.patch
blob: 9de0e4f28e58c799541da7f3126ff984d2ddde2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From d7b8fafbc94405c20753fed569abd8878cccde89 Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Fri, 19 Aug 2022 15:22:10 +0300
Subject: [PATCH] Fix build with fmt 9.0

Fixes #2681
---
 src/database/sql_format.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/database/sql_format.h b/src/database/sql_format.h
index 32dc00ef..e4e1909a 100644
--- a/src/database/sql_format.h
+++ b/src/database/sql_format.h
@@ -42,7 +42,7 @@ struct SQLIdentifier {
 template <>
 struct fmt::formatter<SQLIdentifier> : formatter<std::string_view> {
     template <typename FormatContext>
-    auto format(const SQLIdentifier& tn, FormatContext& ctx) -> decltype(ctx.out())
+    auto format(const SQLIdentifier& tn, FormatContext& ctx) const -> decltype(ctx.out())
     {
         return format_to(ctx.out(), "{}{}{}", tn.quote_begin, tn.name, tn.quote_end);
     }
@@ -61,7 +61,7 @@ struct ColumnUpdate {
 template <>
 struct fmt::formatter<ColumnUpdate> : formatter<std::string_view> {
     template <typename FormatContext>
-    auto format(const ColumnUpdate& a, FormatContext& ctx) -> decltype(ctx.out())
+    auto format(const ColumnUpdate& a, FormatContext& ctx) const -> decltype(ctx.out())
     {
         return format_to(ctx.out(), "{} = {}", a.column, a.value);
     }
-- 
2.38.0.rc1.362.ged0d419d3c-goog