Kapil Arya created MESOS-1947:
---------------------------------

             Summary: Create a generic method to return a protobuf with 
populated fields
                 Key: MESOS-1947
                 URL: https://issues.apache.org/jira/browse/MESOS-1947
             Project: Mesos
          Issue Type: Improvement
            Reporter: Kapil Arya


While working with Modules, it came up that currently there is not standardized 
way of creating protobufs.  There are several implementations, some calling 
getXXX(), createYYY(), and so on.  There is, however, a precedence in 
src/common/protobuf_utils.[ch]pp for creating protobufs for StatusUpdate,, 
Task, etc.

It would be nice to have an templatized implementation, potentially based on 
variadic templates, that allows to create protobufs like:

Modules modules = create<Modules>(args ...);

Any thoughts, suggestions, comments?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to