-
Notifications
You must be signed in to change notification settings - Fork 108
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the code use deprecated interfaces of boost::asio #184
Comments
To reproduce the problem see https://github.com/ClausKlein/azmq/blob/feature/BOOST_ASIO_NO_DEPRECATED/CMakeLists.txt |
It compiles with the latest boost version 1.76, but when you flick on BOOST_ASIO_NO_DEPRECATED, I think it removes the deprecated interfaces, so it not surprising it bombs. I assume we could fix this but then we'll probably have to raise the minimum boost version - I'm not sure if this would affect azmq users? Perhaps its reasonably to only support boost and zmq version from the last two years. Thoughts? |
Starting with v1.71, The BOOST_ASIO_NO_DEPRECATED is available since IMHO, it should not activated at the moment, because of the this azmq interface: template<typename T>
T const& buffer_cast() const {
return *boost::asio::buffer_cast<T const*>(buffer()); // FIXME: deprecated! CK
} The lastes ZMQ4 git version export a cmake config packages too, but this is no available on GitHub CI? I would prefer to use it like this: find_package(ZeroMQ 4.3 CONFIG REQUIRED)
target_link_libraries(azmq INTERFACE ZeroMQ::libzmq Boost::thread) but the namespace is missing in ZMQ4? |
I have modernise so far the code to use the std asio interfaces were possible. It needs more love ... see too ClausKlein#1 |
I would recommend that either that azmq interface be deprecated as well, or find a way to implement it without using the deprecated asio function. Removing |
with modern boost version, it does not compile:
build-d29l5xbh.log
The text was updated successfully, but these errors were encountered: