mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibIPC: Make IPC::encode() and ::decode() fail at compiletime when used
This would previously fail at runtime, and it would have zero indication of what exactly went wrong. Also adds `AK::DependentFalse<Ts...>', which is a...dependent false.
This commit is contained in:
parent
fdb0ac7c1e
commit
b42c6ea281
3 changed files with 7 additions and 1 deletions
|
@ -504,6 +504,9 @@ using CopyConst =
|
|||
template<typename... Ts>
|
||||
using Void = void;
|
||||
|
||||
template<typename... _Ignored>
|
||||
inline constexpr auto DependentFalse = false;
|
||||
|
||||
}
|
||||
|
||||
using AK::AddConst;
|
||||
|
@ -512,6 +515,7 @@ using AK::ceil_div;
|
|||
using AK::clamp;
|
||||
using AK::Conditional;
|
||||
using AK::declval;
|
||||
using AK::DependentFalse;
|
||||
using AK::exchange;
|
||||
using AK::forward;
|
||||
using AK::is_trivial;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue