From a6e448208052c2d03fca53a4061a367b33167d37 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 10 Apr 2021 18:29:06 +0430 Subject: AK+Everywhere: Make StdLibExtras templates less wrapper-y This commit makes the user-facing StdLibExtras templates and utilities arguably more nice-looking by removing the need to reach into the wrapper structs generated by them to get the value/type needed. The C++ standard library had to invent `_v` and `_t` variants (likely because of backwards compat), but we don't need to cater to any codebase except our own, so might as well have good things for free. :^) --- Userland/Libraries/LibX86/Instruction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibX86') diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index 0473841724..1c29ce65dd 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -47,7 +47,7 @@ template struct TypeTrivia { static const size_t bits = sizeof(T) * 8; static const T sign_bit = 1 << (bits - 1); - static const T mask = typename MakeUnsigned::Type(-1); + static const T mask = MakeUnsigned(-1); }; template -- cgit v1.2.3