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 | 14d65b904febc8f22f734acb07465801adb9cdc8 (patch) | |
| tree | 414baa32dc03c181063a1361336513840b9d07c1 /qpid/cpp | |
| parent | f6c674897d34c1a78e3e9b20301267933cdf7001 (diff) | |
| download | qpid-python-14d65b904febc8f22f734acb07465801adb9cdc8.tar.gz | |
QPID-5146: fix for older boost (or perhaps older compiler)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/Session.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/Session.cpp b/qpid/cpp/src/qpid/broker/amqp/Session.cpp index 99232d9f66..1f8e01772c 100644 --- a/qpid/cpp/src/qpid/broker/amqp/Session.cpp +++ b/qpid/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)); } |
