From 61e2f4a4b6f2630a2be2699de96d5b96df5fccbb Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Sat, 25 Oct 2008 00:31:36 +0000 Subject: Fix compile error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707799 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/Address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/Address.h b/qpid/cpp/src/qpid/Address.h index cef80666b8..4913e96e9f 100755 --- a/qpid/cpp/src/qpid/Address.h +++ b/qpid/cpp/src/qpid/Address.h @@ -32,7 +32,7 @@ namespace qpid { struct TcpAddress { static const uint16_t DEFAULT_PORT=5672; explicit TcpAddress(const std::string& host_=std::string(), - uint16_t port_=DEFAULT_PORT) + uint16_t port_=DEFAULT_PORT) : host(host_), port(port_) {} std::string host; uint16_t port; @@ -54,7 +54,7 @@ std::ostream& operator<<(std::ostream& os, const TcpAddress& a); struct Address { public: Address(const Address& a) : value(a.value) {} - template Address(const T& t) : value(t) {} + Address(const TcpAddress& tcp) : value(tcp) {} template Address& operator=(const T& t) { value=t; return *this; } template T* get() { return boost::get(&value); } template const T* get() const { return boost::get(&value); } -- cgit v1.2.1