我认为我的问题真的很微不足道,但我仍然无法让它工作
std::string url="www.google.it";
boost::network::http::client client1_(_follow_redirects=true, _cache_resolved=true);
boost::network::http::client::request req(url);
boost::network::http::client::response resp = client1_.get(req);
std::cout << "Body: " << body(resp) << std::endl;
return 0;
错误当然是指标志的声明......但我该如何设置它们?
/home/snake91/cpp_pricing/underlying.cpp:67:错误:C++ 需要所有声明的类型说明符
boost::network::http::client client1_(_follow_redirects=true, _cache_resolved=true);
^