diff options
author | Alan Conway <aconway@apache.org> | 2008-04-15 21:32:35 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-15 21:32:35 +0000 |
commit | 51b760c29f83dbe06561045aabbb1cc679b38d79 (patch) | |
tree | 79c6bcad24be7186e5ab905c66cf1eb7e194cbd3 | |
parent | 04f90cff6570c8f035eaa2a86fa31ebd1caf3f0f (diff) | |
download | qpid-python-51b760c29f83dbe06561045aabbb1cc679b38d79.tar.gz |
Fix build error - missing op << for Struct32.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648418 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/Makefile.am | 2 | ||||
-rw-r--r-- | cpp/src/qpid/amqp_0_10/Struct32.cpp | 30 | ||||
-rw-r--r-- | cpp/src/qpid/amqp_0_10/Struct32.h | 3 |
3 files changed, 35 insertions, 0 deletions
diff --git a/cpp/src/Makefile.am b/cpp/src/Makefile.am index 3177d280a6..008c2431d1 100644 --- a/cpp/src/Makefile.am +++ b/cpp/src/Makefile.am @@ -121,6 +121,8 @@ libqpidcommon_la_SOURCES = \ qpid/amqp_0_10/SerializableString.h \ qpid/amqp_0_10/Map.h \ qpid/amqp_0_10/Map.cpp \ + qpid/amqp_0_10/Struct32.h \ + qpid/amqp_0_10/Struct32.cpp \ qpid/amqp_0_10/Unit.h \ qpid/amqp_0_10/Unit.cpp \ qpid/amqp_0_10/UnknownType.h \ diff --git a/cpp/src/qpid/amqp_0_10/Struct32.cpp b/cpp/src/qpid/amqp_0_10/Struct32.cpp new file mode 100644 index 0000000000..b36b118db3 --- /dev/null +++ b/cpp/src/qpid/amqp_0_10/Struct32.cpp @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +#include "Struct32.h" + +namespace qpid { +namespace amqp_0_10 { + +std::ostream& operator<<(std::ostream& o, const Struct32& s) { + return o << static_cast<const StructHolder&>(s); +} + +}} // namespace qpid::amqp_0_10 diff --git a/cpp/src/qpid/amqp_0_10/Struct32.h b/cpp/src/qpid/amqp_0_10/Struct32.h index 662518efb8..1f0c116f91 100644 --- a/cpp/src/qpid/amqp_0_10/Struct32.h +++ b/cpp/src/qpid/amqp_0_10/Struct32.h @@ -55,6 +55,9 @@ class Struct32 : public StructHolder } }; + +std::ostream& operator<<(std::ostream&, const Struct32&); + }} // namespace qpid::amqp_0_10 #endif /*!QPID_AMQP_0_10_STRUCT32_H*/ |