fatal error C1017: invalid integer constant expression
Greetings!
Appreciate your excellent work! As a newbie, I got an error in this project.
2>D:\SAIC\GTA Data\gamehook-refactor\gamehook-refactor\plugins\server\external\simple-web-server\asio_compatibility.hpp(30,22): fatal error C1017: invalid integer constant expression
asio_compatibility.hpp(30,22) is:
#if (ASIO_STANDALONE && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300
`namespace SimpleWeb { #if (ASIO_STANDALONE && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300 using io_context = asio::io_context; using resolver_results = asio::ip::tcp::resolver::results_type; using async_connect_endpoint = asio::ip::tcp::endpoint;
template inline void post(io_context &context, handler_type &&handler) { asio::post(context, std::forward<handler_type>(handler)); } inline void restart(io_context &context) noexcept { context.restart(); } inline asio::ip::address make_address(const std::string &str) noexcept { return asio::ip::make_address(str); } template <typename socket_type, typename duration_type> std::unique_ptrasio::steady_timer make_steady_timer(socket_type &socket, std::chrono::duration<duration_type> duration) { return std::unique_ptrasio::steady_timer(new asio::steady_timer(socket.get_executor(), duration)); } template void async_resolve(asio::ip::tcp::resolver &resolver, const std::pair<std::string, std::string> &host_port, handler_type &&handler) { resolver.async_resolve(host_port.first, host_port.second, std::forward<handler_type>(handler)); } inline asio::executor_work_guard<io_context::executor_type> make_work_guard(io_context &context) { return asio::make_work_guard(context); } #else using io_context = asio::io_service; using resolver_results = asio::ip::tcp::resolver::iterator; using async_connect_endpoint = asio::ip::tcp::resolver::iterator;
template inline void post(io_context &context, handler_type &&handler) { context.post(std::forward<handler_type>(handler)); } inline void restart(io_context &context) noexcept { context.reset(); } inline asio::ip::address make_address(const std::string &str) noexcept { return asio::ip::address::from_string(str); } template <typename socket_type, typename duration_type> std::unique_ptrasio::steady_timer make_steady_timer(socket_type &socket, std::chrono::duration<duration_type> duration) { return std::unique_ptrasio::steady_timer(new asio::steady_timer(socket.get_io_service(), duration)); } template void async_resolve(asio::ip::tcp::resolver &resolver, const std::pair<std::string, std::string> &host_port, handler_type &&handler) { resolver.async_resolve(asio::ip::tcp::resolver::query(host_port.first, host_port.second), std::forward<handler_type>(handler)); } inline io_context::work make_work_guard(io_context &context) { return io_context::work(context); } #endif } // namespace SimpleWeb`
Could you help me with this issue? Thanks