1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

AK: Add Vector(std::initializer_list<T>) constructor.

This allows us to construct a Vector from an initializer list like so:

Vector<Object> objects = { object1, object2, object3 };
This commit is contained in:
Andreas Kling 2019-06-28 20:20:19 +02:00
parent 933cd3848f
commit 4c285f9e1a
2 changed files with 9 additions and 1 deletions

View file

@ -92,7 +92,7 @@ OBJS = $(CXX_OBJS) Boot/boot.ao
KERNEL = kernel
CXXFLAGS += -ffreestanding -mregparm=3 -mno-80387 -mno-mmx -mno-sse -mno-sse2
CXXFLAGS += -nostdinc++ -nostdlib -nostdinc
CXXFLAGS += -nostdlib
DEFINES += -DKERNEL
LDFLAGS += -Ttext 0x10000 -Wl,-T linker.ld -nostdlib