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

Fix build failed for cxxopt submodule updating#886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 1 commit intocpp-netlib:masterfromjinyuqi:master
May 8, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionslibs/network/example/CMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@

include_directories(${CPP-NETLIB_SOURCE_DIR})
include_directories(${CPP-NETLIB_SOURCE_DIR}/deps/cxxopts/src)
include_directories(${CPP-NETLIB_SOURCE_DIR}/deps/cxxopts/include)
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
endif (OPENSSL_FOUND)
Expand Down
12 changes: 6 additions & 6 deletionslibs/network/example/http_client.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,22 +29,22 @@ int main(int argc, char* argv[]) {
;

options.parse_positional(std::vector<std::string>{"source"});
options.parse(argc, argv);
auto optionsResults =options.parse(argc, argv);

if (options.count("help")) {
if (optionsResults.count("help")) {
std::cout << options.help({"", "Group"}) << std::endl;
return EXIT_SUCCESS;
}

if (options.count("source") < 1) {
if (optionsResults.count("source") < 1) {
std::cout << "Error: Source URL required." << std::endl;
std::cout << options.help({"", "Group"}) << std::endl;
return EXIT_FAILURE;
}

std::string source =options["source"].as<std::string>();
bool show_headers =options.count("headers") ? true : false;
bool show_status =options.count("status") ? true : false;
std::string source =optionsResults["source"].as<std::string>();
bool show_headers =optionsResults.count("headers") ? true : false;
bool show_status =optionsResults.count("status") ? true : false;

http::client::request request(source);
http::client::string_type destination_ = host(request);
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp