Skip to content

Commit add64a9

Browse files
committed
The URI is parsed in the swap function now in order to update the internal ranges.
1 parent a411abd commit add64a9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

boost/network/uri/uri.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ class basic_uri
8484

8585
void swap(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_type begin() {

libs/network/test/uri/url_http_test.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(not_http, T, tag_types)
2626
typedef typename uri_type::string_type string_type;
2727
const std::string url("mailto:[email protected]");
2828
uri_type instance(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)