summaryrefslogtreecommitdiff
path: root/AK/StdLibExtraDetails.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-11-26 12:18:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-11-26 15:51:34 +0100
commitae3ffdd521a7c7d1fd4b47f9bbfbfaf20da5a14d (patch)
tree7b34ebf6fdc89bbc1e948833930997efd90f04c9 /AK/StdLibExtraDetails.h
parente50a43652eb80c2480fa9b23782bb11a0ccde7e8 (diff)
downloadserenity-ae3ffdd521a7c7d1fd4b47f9bbfbfaf20da5a14d.zip
AK: Make it possible to not `using` AK classes into the global namespace
This patch adds the `USING_AK_GLOBALLY` macro which is enabled by default, but can be overridden by build flags. This is a step towards integrating Jakt and AK types.
Diffstat (limited to 'AK/StdLibExtraDetails.h')
-rw-r--r--AK/StdLibExtraDetails.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/StdLibExtraDetails.h b/AK/StdLibExtraDetails.h
index a970cfd2bb..68689d8c83 100644
--- a/AK/StdLibExtraDetails.h
+++ b/AK/StdLibExtraDetails.h
@@ -614,6 +614,8 @@ template<typename T, typename... Ts>
inline constexpr bool IsOneOfIgnoringCV = (IsSameIgnoringCV<T, Ts> || ...);
}
+
+#if USING_AK_GLOBALLY
using AK::Detail::AddConst;
using AK::Detail::AddConstToReferencedType;
using AK::Detail::AddLvalueReference;
@@ -683,3 +685,4 @@ using AK::Detail::RemoveVolatile;
using AK::Detail::TrueType;
using AK::Detail::UnderlyingType;
using AK::Detail::Void;
+#endif