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

Commit9b9bd9b

Browse files
committed
Ignoring runtime errors in inlined client test.
1 parent42c7bf6 commit9b9bd9b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎libs/network/test/http/client_include_inlined.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ int main(int argc, char * argv[]) {
1111
usingnamespaceboost::network;
1212
http::client c;
1313
http::client::requestreq("http://www.boost.org/");
14-
http::client::response res = c.get(req);
14+
try {
15+
http::client::response res = c.get(req);
16+
}catch (...) {
17+
// ignore the error, we just want to make sure
18+
// the interface works inlined.
19+
}
1520
return0;
1621
}
1722

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp