AK: Add missing headers

Example failure:

IDAllocator.h only pulls in AK/Hashtable.h, so any compilation unit that
includes AK/IDAllocator.h without including AK/Traits.h before it used
to be doomed to fail with the cryptic error message "In instantiation of
'AK::HashTable<T, TraitsForT, IsOrdered>::Iterator AK::HashTable<T,
TraitsForT, IsOrdered>::find(const T&) [with T = int; TraitsForT =
AK::Traits: incomplete type 'AK::Traits<int>' used in nested name
specifier".
This commit is contained in:
Ben Wiederhake 2021-09-16 00:00:33 +02:00 committed by Linus Groh
parent c330ad27b6
commit f8d7b4daea
Notes: sideshowbarker 2024-07-18 02:59:14 +09:00
4 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,8 @@
#pragma once
#include <AK/Types.h>
namespace AK {
template<typename K, typename V, size_t Capacity>

View File

@ -9,6 +9,7 @@
#include <AK/Forward.h>
#include <AK/HashFunctions.h>
#include <AK/StdLibExtras.h>
#include <AK/Traits.h>
#include <AK/Types.h>
#include <AK/kmalloc.h>

View File

@ -6,6 +6,8 @@
#pragma once
#include <AK/NonnullRefPtr.h>
namespace AK::Detail {
template<typename T, typename Container>

View File

@ -6,6 +6,8 @@
#pragma once
#include <AK/Types.h>
namespace AK {
constexpr u32 string_hash(char const* characters, size_t length)