mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
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.
This commit is contained in:
parent
ece8aeaaf4
commit
730fbfb31e
1 changed files with 2 additions and 2 deletions
|
@ -432,10 +432,10 @@ void dmesgln(CheckedFormatString<Parameters...>&& fmt, const Parameters&... para
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template<typename T, typename = void>
|
template<typename T, typename = void>
|
||||||
constexpr bool HasFormatter = true;
|
inline constexpr bool HasFormatter = true;
|
||||||
|
|
||||||
template<typename T>
|
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>
|
template<typename T>
|
||||||
class FormatIfSupported {
|
class FormatIfSupported {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue