URI set operator issue/bug #67

Closed
mikelstainer opened this Issue Sep 26, 2011 · 3 comments

Comments

Projects
None yet
3 participants
@mikelstainer

Hello, guys.

Seems not clear for me why in below code bar0 is invalid after assigment.
But after swapping bar0 with itself it becomes ok.

Thanks.

std::string site_name = "http://www.google.com";
boost::network::uri::http::uri bar0; 
boost::network::uri::http::uri bar1 = site_name;

bar0 = site_name; 

//bar0.swap(bar0);

if (!boost::network::uri::is_valid(bar0)) {
    std::cout << "bar0 invalid: " << bar0.string() << std::endl;
}
if (!boost::network::uri::is_valid(bar1)) {
    std::cout << "bar1 invalid: "<< bar1.string() << std::endl;
}
@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Sep 27, 2011

Member

Interesting. What version of the library are you using?

Member

deanberris commented Sep 27, 2011

Interesting. What version of the library are you using?

@glynos

This comment has been minimized.

Show comment
Hide comment
@glynos

glynos Sep 27, 2011

Member

I can confirm that I can reproduce this bug using the latest code in 0.9-devel. I'll investigate further within the next couple of days.

Member

glynos commented Sep 27, 2011

I can confirm that I can reproduce this bug using the latest code in 0.9-devel. I'll investigate further within the next couple of days.

@ghost ghost assigned glynos Sep 27, 2011

@glynos

This comment has been minimized.

Show comment
Hide comment
@glynos

glynos Sep 27, 2011

Member

Turns out it was a pretty simple fix in the uri constructor. Thanks for the report.

Member

glynos commented Sep 27, 2011

Turns out it was a pretty simple fix in the uri constructor. Thanks for the report.

@glynos glynos closed this Sep 27, 2011

glynos added a commit that referenced this issue Dec 5, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment