Hi folks,

This is in regard to the definition of PROTOBUF_FIELD_OFFSET:

https://github.com/protocolbuffers/protobuf/blob/064438830bff4d87bb7fcfdaa53aa2598168e524/src/google/protobuf/port_def.inc#L311

The Visual C++ team found that this macro is supposed to cause a compiler 
error. It uses reinterpret_cast in constexpr contexts, which isn't allowed 
by the standard. We intend to patch this by causing an error in future 
versions.

Fortunately, MSVC supports __builtin_offsetof, so we ask that you use that 
instead. Let me know if you have any questions.

Thank you,
RanDair Porter
Visual C++

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/protobuf/bb59f3a0-0031-4a79-8cb9-09d3020f2e28n%40googlegroups.com.

Reply via email to