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

Commitadd64a9

Browse files
committed
The URI is parsed in the swap function now in order to update the internal ranges.
1 parenta411abd commitadd64a9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

‎boost/network/uri/uri.hpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ class basic_uri
8484

8585
voidswap(basic_uri &other) {
8686
boost::swap(uri_, other.uri_);
87-
boost::swap(uri_parts_, other.uri_parts_);
88-
boost::swap(is_valid_, other.is_valid_);
87+
parse();
8988
}
9089

9190
iterator_typebegin() {

‎libs/network/test/uri/url_http_test.cpp‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(not_http, T, tag_types)
2626
typedeftypename uri_type::string_type string_type;
2727
const std::stringurl("mailto:john.doe@example.com");
2828
uri_typeinstance(string_type(boost::begin(url),boost::end(url)));
29-
std::copy(instance.begin(), instance.end(),
30-
std::ostream_iterator<char>(std::cout));
31-
std::cout << std::endl;
3229
//BOOST_CHECK(!uri::is_valid(instance));
3330
}
3431

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp