Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 1 | From 9bb962148672a3c20fb0119d7f71789b8ef3dc02 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 29 Jun 2021 19:31:34 -0700 |
| 4 | Subject: [PATCH] include <utility> for std::forward |
| 5 | |
| 6 | Fixes |
| 7 | ../git/src/Log.hxx:121:42: error: no member named 'forward' in namespace 'std' |
| 8 | LogFormat(LogLevel::ERROR, e, fmt, std::forward<Args>(args)...); |
| 9 | |
| 10 | Upstream-Status: Submitted [https://github.com/MusicPlayerDaemon/MPD/pull/1201] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | src/Log.hxx | 1 + |
| 14 | src/lib/expat/ExpatParser.hxx | 1 + |
| 15 | 2 files changed, 2 insertions(+) |
| 16 | |
| 17 | diff --git a/src/Log.hxx b/src/Log.hxx |
| 18 | index a295ed9f6..87097b086 100644 |
| 19 | --- a/src/Log.hxx |
| 20 | +++ b/src/Log.hxx |
| 21 | @@ -24,6 +24,7 @@ |
| 22 | #include "util/Compiler.h" |
| 23 | |
| 24 | #include <exception> |
| 25 | +#include <utility> |
| 26 | |
| 27 | class Domain; |
| 28 | |
| 29 | diff --git a/src/lib/expat/ExpatParser.hxx b/src/lib/expat/ExpatParser.hxx |
| 30 | index e1723d109..4b5221e89 100644 |
| 31 | --- a/src/lib/expat/ExpatParser.hxx |
| 32 | +++ b/src/lib/expat/ExpatParser.hxx |
| 33 | @@ -25,6 +25,7 @@ |
| 34 | #include <expat.h> |
| 35 | |
| 36 | #include <stdexcept> |
| 37 | +#include <utility> |
| 38 | |
| 39 | class InputStream; |
| 40 | |
| 41 | -- |
| 42 | 2.32.0 |
| 43 | |