19 #ifndef MIR_CLIENT_MAKE_PROTOBUF_OBJECT_
20 #define MIR_CLIENT_MAKE_PROTOBUF_OBJECT_
26 template <
typename ProtobufType>
29 return std::unique_ptr<ProtobufType>{ProtobufType::default_instance().New()};
32 template <
typename ProtobufType>
35 auto object = make_protobuf_object<ProtobufType>();
36 object->CopyFrom(from);
All things Mir.
Definition: atomic_callback.h:25
auto make_protobuf_object()
Definition: make_protobuf_object.h:27