[
https://issues.apache.org/jira/browse/PROTON-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15298748#comment-15298748
]
Alan Conway commented on PROTON-1211:
-------------------------------------
e.clear() is correct, the previous code was a bug.
make_wrapper doesn't make a new data object, it just makes a C++ pointer
wrapper to the existing one, so repeatedly calling << will make it grow.
This is old code and could be made more intuitive by the value API, where
assignment replaces the existing contents.
However the patch above with e.clear() is correct.
> C++ binding exception in message::correlation_id()
> --------------------------------------------------
>
> Key: PROTON-1211
> URL: https://issues.apache.org/jira/browse/PROTON-1211
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
> Affects Versions: 0.13.0, 0.14.0
> Reporter: Cliff Jansen
> Assignee: Cliff Jansen
> Priority: Blocker
> Fix For: 0.13.0
>
> Attachments: msgid.cpp
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]