boost error
Closed this issue · 2 comments
1>------ Build started: Project: revision_data.h, Configuration: Release x64 ------
2>------ Build started: Project: worldserver, Configuration: Release x64 ------
2>Main.cpp
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_impl.hpp(87,1): error C2039: 'get_executor': is not a member of 'boost::asio::execution_context'
2>C:\local\boost_1_72_0\boost/asio/execution_context.hpp(106): message : see declaration of 'boost::asio::execution_context'
2>C:\local\boost_1_72_0\boost/asio/basic_deadline_timer.hpp(183): message : see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service,Executor>::io_object_impl(ExecutionContext &,void *)' being compiled
2> with
2> [
2> TimeTraits=boost::asio::time_traitsboost::posix_time::ptime,
2> Executor=boost::asio::executor,
2> ExecutionContext=boost::asio::execution_context
2> ]
2>C:\local\boost_1_72_0\boost/asio/basic_deadline_timer.hpp(182): message : see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service,Executor>::io_object_impl(ExecutionContext &,void *)' being compiled
2> with
2> [
2> TimeTraits=boost::asio::time_traitsboost::posix_time::ptime,
2> Executor=boost::asio::executor,
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(255): message : see reference to function template instantiation 'boost::asio::basic_deadline_timer<boost::posix_time::ptime,boost::asio::time_traitsboost::posix_time::ptime,boost::asio::executor>::basic_deadline_timerboost::asio::execution_context(ExecutionContext &,void *)' being compiled
2> with
2> [
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(255): message : see reference to function template instantiation 'boost::asio::basic_deadline_timer<boost::posix_time::ptime,boost::asio::time_traitsboost::posix_time::ptime,boost::asio::executor>::basic_deadline_timerboost::asio::execution_context(ExecutionContext &,void *)' being compiled
2> with
2> [
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(249): message : while compiling class template member function 'void SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection::set_timeout(long) noexcept'
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(505): message : see reference to function template instantiation 'void SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection::set_timeout(long) noexcept' being compiled
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(724): message : see reference to class template instantiation 'SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection' being compiled
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_impl.hpp(87,31): error C2665: 'boost::asio::detail::io_object_executor::io_object_executor': none of the 3 overloads could convert all the argument types
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_executor.hpp(57,3): message : could be 'boost::asio::detail::io_object_executor::io_object_executor(boost::asio::detail::io_object_executor &&) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_executor.hpp(42,3): message : or 'boost::asio::detail::io_object_executor::io_object_executor(const boost::asio::detail::io_object_executor &) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_executor.hpp(35,3): message : or 'boost::asio::detail::io_object_executor::io_object_executor(const Executor &,bool) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_72_0\boost/asio/detail/io_object_impl.hpp(89,1): message : while trying to match the argument list '(const _Ty)'
2> with
2> [
2> _Ty=bool
2> ]
2>Done building project "worldserver.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 14 up-to-date, 0 skipped ==========
when i replace the version boost 1.71.0
build error
1>------ Build started: Project: revision_data.h, Configuration: Release x64 ------
2>------ Build started: Project: worldserver, Configuration: Release x64 ------
2>Main.cpp
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_impl.hpp(87,1): error C2039: 'get_executor': is not a member of 'boost::asio::execution_context'
2>C:\local\boost_1_71_0\boost/asio/execution_context.hpp(106): message : see declaration of 'boost::asio::execution_context'
2>C:\local\boost_1_71_0\boost/asio/basic_deadline_timer.hpp(175): message : see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service,Executor>::io_object_impl(ExecutionContext &,void *)' being compiled
2> with
2> [
2> TimeTraits=boost::asio::time_traitsboost::posix_time::ptime,
2> Executor=boost::asio::executor,
2> ExecutionContext=boost::asio::execution_context
2> ]
2>C:\local\boost_1_71_0\boost/asio/basic_deadline_timer.hpp(174): message : see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service,Executor>::io_object_impl(ExecutionContext &,void *)' being compiled
2> with
2> [
2> TimeTraits=boost::asio::time_traitsboost::posix_time::ptime,
2> Executor=boost::asio::executor,
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(255): message : see reference to function template instantiation 'boost::asio::basic_deadline_timer<boost::posix_time::ptime,boost::asio::time_traitsboost::posix_time::ptime,boost::asio::executor>::basic_deadline_timerboost::asio::execution_context(ExecutionContext &,void *)' being compiled
2> with
2> [
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(255): message : see reference to function template instantiation 'boost::asio::basic_deadline_timer<boost::posix_time::ptime,boost::asio::time_traitsboost::posix_time::ptime,boost::asio::executor>::basic_deadline_timerboost::asio::execution_context(ExecutionContext &,void *)' being compiled
2> with
2> [
2> ExecutionContext=boost::asio::execution_context
2> ]
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(249): message : while compiling class template member function 'void SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection::set_timeout(long) noexcept'
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(505): message : see reference to function template instantiation 'void SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection::set_timeout(long) noexcept' being compiled
2>D:\wowcore\AshamaneCore\src\server\worldserver\TCRest\server_http.h(724): message : see reference to class template instantiation 'SimpleWeb::ServerBaseSimpleWeb::HTTP::Connection' being compiled
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_impl.hpp(87,31): error C2665: 'boost::asio::detail::io_object_executor::io_object_executor': none of the 3 overloads could convert all the argument types
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_executor.hpp(57,3): message : could be 'boost::asio::detail::io_object_executor::io_object_executor(boost::asio::detail::io_object_executor &&) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_executor.hpp(42,3): message : or 'boost::asio::detail::io_object_executor::io_object_executor(const boost::asio::detail::io_object_executor &) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_executor.hpp(35,3): message : or 'boost::asio::detail::io_object_executor::io_object_executor(const Executor &,bool) noexcept'
2> with
2> [
2> Executor=boost::asio::executor
2> ]
2>C:\local\boost_1_71_0\boost/asio/detail/io_object_impl.hpp(89,1): message : while trying to match the argument list '(const _Ty)'
2> with
2> [
2> _Ty=bool
2> ]
2>Done building project "worldserver.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 14 up-to-date, 0 skipped ==========