Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
MapContent and ListContent (helper classes in the qpid::messaging API) don't have a convenient way of being initialized with an already-existing map or list.
I propose that in addition to the
{Map,List}Content(Message&) constructor, a new constructor be added that also takes a const Variant::{Map,List}& as an initial value.
Note that the current constructors will decode map/list content already in the message. That will remain unchanged but the new constructors will clear the message content, if there is any.
-Ted