From 36be5a84c58f31d0d8c4348c6d851bdd6fe487a0 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/qpid@707799 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/Address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/Address.h b/cpp/src/qpid/Address.h index cef80666b8..4913e96e9f 100755 --- a/cpp/src/qpid/Address.h +++ b/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