summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2021-04-21 12:52:38 -0600
committerAndreas Kling <kling@serenityos.org>2021-04-21 21:15:35 +0200
commit730fbfb31ed2ed226d9fdce4bee938efc20e1ef2 (patch)
treea68cc866c6f4ae745bae36a60f544e0fe3f3e0d3 /AK
parentece8aeaaf439ce786be06a084788b2c507ae5bf1 (diff)
downloadserenity-730fbfb31ed2ed226d9fdce4bee938efc20e1ef2.zip
AK/Format: Fix incorrectly non-inlined variable templates
Problem: - Global variables (and variable templates) defined in header files need to be decorated `inline` to avoid multiple definition issues. Solution: - Put back the `inline` keyword which was erroneously removed.
Diffstat (limited to 'AK')
-rw-r--r--AK/Format.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Format.h b/AK/Format.h
index 2054d30768..3193c79220 100644
--- a/AK/Format.h
+++ b/AK/Format.h
@@ -432,10 +432,10 @@ void dmesgln(CheckedFormatString<Parameters...>&& fmt, const Parameters&... para
#endif
template<typename T, typename = void>
-constexpr bool HasFormatter = true;
+inline constexpr bool HasFormatter = true;
template<typename T>
-constexpr bool HasFormatter<T, typename Formatter<T>::__no_formatter_defined> = false;
+inline constexpr bool HasFormatter<T, typename Formatter<T>::__no_formatter_defined> = false;
template<typename T>
class FormatIfSupported {