diff options
| author | Alan Conway <aconway@apache.org> | 2008-10-25 00:31:36 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-10-25 00:31:36 +0000 |
| commit | 61e2f4a4b6f2630a2be2699de96d5b96df5fccbb (patch) | |
| tree | bf97c47b177484ff7c17e7938a8f050c75a6da38 /qpid/cpp | |
| parent | c4145a75dda540e8f7938036e19068b4e29b855a (diff) | |
| download | qpid-python-61e2f4a4b6f2630a2be2699de96d5b96df5fccbb.tar.gz | |
Fix compile error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rwxr-xr-x | qpid/cpp/src/qpid/Address.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <class T> Address(const T& t) : value(t) {} + Address(const TcpAddress& tcp) : value(tcp) {} template <class T> Address& operator=(const T& t) { value=t; return *this; } template <class T> T* get() { return boost::get<T>(&value); } template <class T> const T* get() const { return boost::get<T>(&value); } |
