diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-29 18:18:45 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-29 18:18:45 +0000 |
| commit | 9749e6774159c43750f04907574d371235e36c0a (patch) | |
| tree | a04aa3d5171ad59a82e82cec4a18e691dce56378 /cpp/src/qpid/Url.h | |
| parent | 7a7273f69fdd328de06db16347914a20ae758b2b (diff) | |
| download | qpid-python-9749e6774159c43750f04907574d371235e36c0a.tar.gz | |
Refactored cluster to intercept at ConnectionCode, using sys:: interfaces rather than boost functions.
Use framing::Operations and Invoker to dispatch cluster methods.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@690358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/Url.h')
| -rw-r--r-- | cpp/src/qpid/Url.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/Url.h b/cpp/src/qpid/Url.h index 20f42db0ad..97b72ea993 100644 --- a/cpp/src/qpid/Url.h +++ b/cpp/src/qpid/Url.h @@ -76,7 +76,9 @@ struct Url : public std::vector<Address> { /** Parse url, throw InvalidUrl if invalid. */ explicit Url(const char* url) { parse(url); } - template<class T> Url& operator=(T s) { parse(s); return *this; } + Url& operator=(const Url& u) { this->std::vector<Address>::operator=(u); cache=u.cache; return *this; } + Url& operator=(const char* s) { parse(s); return *this; } + Url& operator=(const std::string& s) { parse(s); return *this; } /** Throw InvalidUrl if the URL does not contain any addresses. */ void throwIfEmpty() const; |
