AK: Move compiletime_fail to StdLibExtras.h

This function will be used in the next commit in "BigIntBase.h".
This commit is contained in:
Dan Klishch 2023-03-02 13:49:26 +03:00 committed by Andrew Kaster
parent 1fec1741b9
commit 2a6f5ff441
2 changed files with 3 additions and 3 deletions

View file

@ -40,9 +40,6 @@ struct Array {
T __data[Size];
};
template<typename... Args>
void compiletime_fail(Args...);
template<size_t N>
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)
{

View file

@ -32,6 +32,9 @@ requires(AK::Detail::IsIntegral<T>)
return value && !((value) & (value - 1));
}
template<typename... Args>
void compiletime_fail(Args...);
}
#if !USING_AK_GLOBALLY || defined(AK_DONT_REPLACE_STD)