From 730fbfb31ed2ed226d9fdce4bee938efc20e1ef2 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Wed, 21 Apr 2021 12:52:38 -0600 Subject: [PATCH] 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. --- AK/Format.h | 4 ++-- 1 file 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&& fmt, const Parameters&... para #endif template -constexpr bool HasFormatter = true; +inline constexpr bool HasFormatter = true; template -constexpr bool HasFormatter::__no_formatter_defined> = false; +inline constexpr bool HasFormatter::__no_formatter_defined> = false; template class FormatIfSupported {