From 2a6f5ff441b198e000aad845672e1e1ea22ec3b4 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Thu, 2 Mar 2023 13:49:26 +0300 Subject: [PATCH] AK: Move compiletime_fail to StdLibExtras.h This function will be used in the next commit in "BigIntBase.h". --- AK/CheckedFormatString.h | 3 --- AK/StdLibExtras.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h index 749899413e..121d57eceb 100644 --- a/AK/CheckedFormatString.h +++ b/AK/CheckedFormatString.h @@ -40,9 +40,6 @@ struct Array { T __data[Size]; }; -template -void compiletime_fail(Args...); - template consteval auto extract_used_argument_index(char const (&fmt)[N], size_t specifier_start_index, size_t specifier_end_index, size_t& next_implicit_argument_index) { diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index 869f2789cf..67e6b3ac3b 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -32,6 +32,9 @@ requires(AK::Detail::IsIntegral) return value && !((value) & (value - 1)); } +template +void compiletime_fail(Args...); + } #if !USING_AK_GLOBALLY || defined(AK_DONT_REPLACE_STD)