We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4091d3 commit fdfeeb8Copy full SHA for fdfeeb8
boost/network/uri/uri.hpp
@@ -72,8 +72,9 @@ class uri
72
return *this;
73
}
74
75
- uri &operator = (const string_type &uri_) {
76
- uri(uri_).swap(*this);
+ uri &operator = (const string_type &uri) {
+ uri_ = uri;
77
+ parse();
78
79
80
libs/network/test/uri/url_test.cpp
@@ -198,3 +198,13 @@ BOOST_AUTO_TEST_CASE(range_test)
198
BOOST_REQUIRE(uri::valid(instance));
199
BOOST_CHECK(boost::equal(instance, url));
200
201
+
202
+BOOST_AUTO_TEST_CASE(issue_67_test)
203
+{
204
+ const std::string site_name("http://www.google.com");
205
+ uri::uri bar0;
206
+ uri::uri bar1 = site_name;
207
+ bar0 = site_name;
208
+ BOOST_CHECK(uri::is_valid(bar0));
209
+ BOOST_CHECK(uri::is_valid(bar1));
210
+}
0 commit comments