protobuf-d icon indicating copy to clipboard operation
protobuf-d copied to clipboard

built-in types are structs instead of classes

Open pontaoski opened this issue 4 years ago • 1 comments

built-in/google types are generated as structs, which seem to be causing a lot of issues with template instantiation. replacing struct with class fixes most compilation issues for me

pontaoski avatar Jan 24 '21 19:01 pontaoski

@pontaoski can you give example exactly what kind of problems you have?

Built-in types? you mean integers/floats? They are pass-by-value semantics, hence struct, while class is pass by reference semantics.

mw66 avatar May 18 '21 21:05 mw66