Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b383aa

Browse files
committed
Fixing issue with fetching the raw URI from a basic_uri, adding forwarding functions to base implementations.
1 parent5d01f3d commit7b383aa

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_typeraw()const {
81-
returnstring();
81+
returnraw_;
8282
}
8383

8484
string_typestring()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_typeconst & uri) : uri_base<Tag>(uri) {}
118118

119+
basic_uri &operator= (basic_uri & rhs) {
120+
rhs.swap(*this);
121+
return *this;
122+
}
123+
124+
voidswap(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<classTag>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp