diff options
| author | Gordon Sim <gsim@apache.org> | 2013-09-23 09:24:41 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-09-23 09:24:41 +0000 |
| commit | 4bd7f6755f557c40810462a84beb1688c41884cd (patch) | |
| tree | 0110133f9054920982686ea87f249b0ae9301707 /cpp/src | |
| parent | a0b367c564ef27d4a17d49b2306e576e3627f783 (diff) | |
| download | qpid-python-4bd7f6755f557c40810462a84beb1688c41884cd.tar.gz | |
QPID-5146: fix for older boost (or perhaps older compiler)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1525541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/amqp/Session.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/amqp/Session.cpp b/cpp/src/qpid/broker/amqp/Session.cpp index 99232d9f66..1f8e01772c 100644 --- a/cpp/src/qpid/broker/amqp/Session.cpp +++ b/cpp/src/qpid/broker/amqp/Session.cpp @@ -101,11 +101,13 @@ void readCapabilities(pn_data_t* data, F f) if (type == PN_ARRAY) { pn_data_enter(data); while (pn_data_next(data)) { - f(convert(pn_data_get_symbol(data))); + std::string s = convert(pn_data_get_symbol(data)); + f(s); } pn_data_exit(data); } else if (type == PN_SYMBOL) { - f(convert(pn_data_get_symbol(data))); + std::string s = convert(pn_data_get_symbol(data)); + f(s); } else { QPID_LOG(error, "Skipping capabilities field of type " << pn_type_name(type)); } |
