Does Protocol Buffers support move constructor

Paweł Szczur picture Paweł Szczur · May 18, 2015 · Viewed 10k times · Source

I've checked the move constructor spec and a Message constructor source and didn't find one.

If there's not, does anyone know about a plan to add it?

I'm using proto3 syntax, writing a library and considering between return through value vs unique_ptr.

Answer

Daniel Schepler picture Daniel Schepler · Aug 11, 2017

According to https://github.com/google/protobuf/issues/2791 this will be supported in Protobuf version 3.4.0.