[webkit-dev] Potential problem with member function pointer sizes

Vienneau, Christopher cvienneau at ea.com
Wed Apr 13 14:17:50 PDT 2016


Hi,

I just wanted to give a heads up on an issue I recently investigated, the details can be seen in this forums post:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/72343dd4-3a43-46e8-889e-73dc4d8e9432/discrepancy-with-sizeof-in-template?forum=vcgeneral
The short version is that the MSVC compiler will do the wrong then when making a member function pointer to a class that it only has a forward declaration for.  This can be fixed by either providing the definition for the class or by using the /vmg compiler flag.

I did not experience this problem with Apples WinCairo sample, but I suspect it could happen.

Chris Vienneau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20160413/3b067036/attachment.html>


More information about the webkit-dev mailing list