[webkit-dev] Compile error in WebGL2RenderingContext.cpp

Michael Catanzaro mcatanzaro at igalia.com
Thu Jan 17 07:33:33 PST 2019


On Thu, Jan 17, 2019 at 2:27 AM, Salisbury, Mark 
<mark.salisbury at hp.com> wrote:
> Thanks Tim!
> 
> 
> 
> I didn’t know about C++ variable length arrays.  That makes perfect 
> sense now.
> 
> 
> 
> Looks like people have been requesting Visual Studio add support for 
> VLAs; there are no indications they will be supported.
> 
We shouldn't be using VLAs in WebKit. It's not standard C++, and even 
if it was, it's not safe. The code should use std::array or perhaps 
WTF::Vector.

Michael



More information about the webkit-dev mailing list