AK: Allow Optional<T> to be used in constant expressions

This commit is contained in:
Jonne Ransijn 2025-04-11 15:55:43 +02:00 committed by Andrew Kaster
commit a059ab4677
Notes: github-actions[bot] 2025-04-23 03:21:35 +00:00
4 changed files with 233 additions and 86 deletions

View file

@ -10,6 +10,7 @@
#include <AK/Platform.h>
#include <AK/StdLibExtraDetails.h>
#include <memory>
#include <utility>
namespace AK {
@ -31,6 +32,7 @@ requires(AK::Detail::IsIntegral<T>)
template<typename... Args>
void compiletime_fail(Args...);
using std::construct_at;
using std::forward;
using std::move;
}