Skip to content

Commit 7b383aa

Browse files
committed
Fixing issue with fetching the raw URI from a basic_uri, adding forwarding functions to base implementations.
1 parent 5d01f3d commit 7b383aa

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

boost/network/uri/basic_uri.hpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct uri_base {
7878
}
7979

8080
string_type raw() const {
81-
return string();
81+
return raw_;
8282
}
8383

8484
string_type string() const {
@@ -116,6 +116,18 @@ class basic_uri : public uri_base<Tag> {
116116
basic_uri() : uri_base<Tag>() {}
117117
basic_uri(typename uri_base<Tag>::string_type const & uri) : uri_base<Tag>(uri) {}
118118

119+
basic_uri & operator= (basic_uri & rhs) {
120+
rhs.swap(*this);
121+
return *this;
122+
}
123+
124+
void swap(basic_uri & other) {
125+
uri_base<Tag>::swap(other);
126+
}
127+
128+
using uri_base<Tag>::operator==;
129+
using uri_base<Tag>::operator!=;
130+
119131
};
120132

121133
template <class Tag>

0 commit comments

Comments
 (0)