<div dir="ltr">On Tue, Sep 3, 2013 at 11:19 AM, Warren Hunt <span dir="ltr"><<a href="mailto:whunt@google.com" target="_blank">whunt@google.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div dir="ltr">If people are using ms_struct and non-standard layouts without thinking about it then perhaps it is reasonable to force them to think about it? The ms_struct pragma is an ABI change, which has somewhat wide-reaching consequences. I suspect that the most common use case is to read serialized data directly into memory. I'm assuming that the data was serialized by code generated by the cl.exe (which is why they're using ms-struct in the first place) and so they're likely to get ms layout for non-standard layout types in the serialized data and might have bugs.<span class="HOEnZb"></span></div>
</blockquote><div><br></div><div>I doubt anyone is actually directly serializing structs with vptrs. :) I just expect that the pragmas might cover more than they should.<br><br></div><div>It's not unreasonable to force people to think about it, but we probably need some sort of deprecation period.<br>
</div></div><br></div><div class="gmail_extra">-Eli<br></div></div>