electronicarts / EASTL

EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance.
BSD 3-Clause "New" or "Revised" License
7.82k stars 905 forks source link

Add MSVC support to initializer_list #503

Closed mtnpke closed 10 months ago

mtnpke commented 1 year ago

The C++ standard does not define how the implementation constructs initializer_list instances from the actual lists. Many compilers seem to use the pointer and size method that EASTL implements, but not MSVC. It uses two pointers (the other obvious way to do it). This PR implements the corresponding constructor to make intializer_list compatible with MSVC.

jhopkins-ea commented 12 months ago

Just curious, are you compiling without any std library implementation at all? EA_HAVE_CPP11_INITIALIZER_LIST is 1 by default.

mtnpke commented 12 months ago

Yes. I am compiling in kernel mode without any STL implementation (besides EASTL).

mtnpke commented 10 months ago

Just wondering, is there anything else holding up the merge of this PR? I believe every question was addressed.

grojo-ea commented 10 months ago

Apologies, it seems this fell off our radar. Thanks for answering our questions, this is OK to merge.