We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with this define I can't compile the project:
add_definitions(-DBOOST_ASIO_NO_DEPRECATED=1)
Claus-iMac:.build-src-Debug clausklein$ ninja -j 1 -v [1/12] /usr/local/bin/ccache /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ASIO_NO_DEPRECATED=1 -DBOOST_ASIO_SEPARATE_COMPILATION=1 -DBOOST_BEAST_SEPARATE_COMPILATION=1 -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -I/Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include -isystem /usr/local/Cellar/boost/1.72.0_2/include -isystem /usr/local/opt/openssl/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -std=c++17 -Wall -Wextra -Wpedantic -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wall -Wextra -Wpedantic -Wno-unknown-warning-option "-Wno-#pragma-messages" -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -std=c++17 -MD -MT examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.o -MF examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.d -o examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.o -c /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx FAILED: examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.o /usr/local/bin/ccache /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ASIO_NO_DEPRECATED=1 -DBOOST_ASIO_SEPARATE_COMPILATION=1 -DBOOST_BEAST_SEPARATE_COMPILATION=1 -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -I/Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include -isystem /usr/local/Cellar/boost/1.72.0_2/include -isystem /usr/local/opt/openssl/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -std=c++17 -Wall -Wextra -Wpedantic -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wall -Wextra -Wpedantic -Wno-unknown-warning-option "-Wno-#pragma-messages" -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -std=c++17 -MD -MT examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.o -MF examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.d -o examples/reactor_flex/CMakeFiles/reactor_flex.dir/main.o -c /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx # ... /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/reactor/ssl/session.hxx:56:71: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments] In file included from /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx:2: In file included from /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/reactor/session.hxx:11: In file included from /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/base/timer.hxx:58: /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/base/impl/timer.hxx:59:19: error: too many arguments to function call, expected 0, have 1 timer_.cancel(ec); ~~~~~~~~~~~~~ ^~ /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/common/impl/detect.hxx:300:22: note: in instantiation of member function '_0xdead4ead::http::base::timer<boost::asio::basic_waitable_timer<std::__1::chrono::steady_clock, boost::asio::wait_traits<std::__1::chrono::steady_clock>, boost::asio::executor>, boost::asio::strand<boost::asio::executor> >::cancel' requested here auto ec = timer_.cancel(); ^ /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/common/impl/detect.hxx:197:9: note: in instantiation of member function '_0xdead4ead::http::common::detect<boost::beast::basic_flat_buffer<std::__1::allocator<char> >, boost::asio::ip::tcp, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, std::__1::chrono::steady_clock, boost::asio::basic_waitable_timer<std::__1::chrono::steady_clock, boost::asio::wait_traits<std::__1::chrono::steady_clock>, boost::asio::executor>, std::function, std::function, std::function>::do_timer_cancel' requested here do_timer_cancel(); ^ /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include/http/common/impl/detect.hxx:35:92: note: in instantiation of member function '_0xdead4ead::http::common::detect<boost::beast::basic_flat_buffer<std::__1::allocator<char> >, boost::asio::ip::tcp, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, std::__1::chrono::steady_clock, boost::asio::basic_waitable_timer<std::__1::chrono::steady_clock, boost::asio::wait_traits<std::__1::chrono::steady_clock>, boost::asio::executor>, std::function, std::function, std::function>::do_async' requested here std::make_shared<self_type>(std::move(socket), std::forward<_OnAction>(on_action)...)->do_async(); ^ /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx:201:21: note: in instantiation of function template specialization '_0xdead4ead::http::common::detect<boost::beast::basic_flat_buffer<std::__1::allocator<char> >, boost::asio::ip::tcp, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, std::__1::chrono::steady_clock, boost::asio::basic_waitable_timer<std::__1::chrono::steady_clock, boost::asio::wait_traits<std::__1::chrono::steady_clock>, boost::asio::executor>, std::function, std::function, std::function>::async<const (lambda at /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx:181:28) &, const (lambda at /Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/examples/reactor_flex/main.cxx:171:27) &>' requested here ssl_detect::async(std::move(asio_socket), onDetect, onError); ^ /usr/local/Cellar/boost/1.72.0_2/include/boost/asio/basic_waitable_timer.hpp:361:3: note: 'cancel' declared here std::size_t cancel() ^ 18 warnings and 1 error generated. ninja: build stopped: subcommand failed. Claus-iMac:.build-src-Debug clausklein$
The text was updated successfully, but these errors were encountered:
No branches or pull requests
with this define I can't compile the project:
add_definitions(-DBOOST_ASIO_NO_DEPRECATED=1)
The text was updated successfully, but these errors were encountered: