1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibIPC: Restore inline attribute on IPC constexpr booleans

These were mistakenly removed in commit d41e577ba.
This commit is contained in:
Timothy Flynn 2025-02-13 07:12:57 -05:00 committed by Tim Flynn
parent 9a4bb958ac
commit 01044cbf1f
Notes: github-actions[bot] 2025-02-13 13:27:56 +00:00

View file

@ -29,24 +29,24 @@ namespace Detail {
// Cannot use SpecializationOf with these templates because they have non-type parameters. See https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1985r3.pdf
template<typename T>
constexpr bool IsArray = false;
constexpr inline bool IsArray = false;
template<typename T, size_t N>
constexpr bool IsArray<Array<T, N>> = true;
constexpr inline bool IsArray<Array<T, N>> = true;
template<typename T>
constexpr bool IsVector = false;
constexpr inline bool IsVector = false;
template<typename T, size_t inline_capacity>
constexpr bool IsVector<Vector<T, inline_capacity>> = true;
constexpr inline bool IsVector<Vector<T, inline_capacity>> = true;
template<typename T>
constexpr bool IsHashMap = false;
constexpr inline bool IsHashMap = false;
template<typename K, typename V, typename KeyTraits, typename ValueTraits, bool IsOrdered>
constexpr bool IsHashMap<HashMap<K, V, KeyTraits, ValueTraits, IsOrdered>> = true;
constexpr inline bool IsHashMap<HashMap<K, V, KeyTraits, ValueTraits, IsOrdered>> = true;
template<typename T>
constexpr bool IsSharedSingleProducerCircularQueue = false;
constexpr inline bool IsSharedSingleProducerCircularQueue = false;
template<typename T, size_t Size>
constexpr bool IsSharedSingleProducerCircularQueue<Core::SharedSingleProducerCircularQueue<T, Size>> = true;
constexpr inline bool IsSharedSingleProducerCircularQueue<Core::SharedSingleProducerCircularQueue<T, Size>> = true;
}