Comments (5)
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?
from azmq.
To reproduce the problem see https://github.com/ClausKlein/azmq/blob/feature/BOOST_ASIO_NO_DEPRECATED/CMakeLists.txt
from azmq.
Starting with v1.71, boost
is installed with cmake config packages
, which can used as noted in my TODO:
lines.
debian stable still delivers an older boost version, but it supports this option too!
The BOOST_ASIO_NO_DEPRECATED is available since c++17
is finished.
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?
from azmq.
I have modernise so far the code to use the std asio interfaces were possible.
This compiles without any warning, clang-tidy
is happy, but the are test errors?
It needs more love ...
see too ClausKlein#1
from azmq.
Related Issues (20)
- Add CI pipelines for building and running test on support platforms HOT 1
- Add zeromq guide book examples HOT 1
- test fails on OSX HOT 14
- max_sockets references incorrect ZMQ_MAXMSGSIZE HOT 2
- Doesn't build with latest catch2 HOT 2
- Publisher message is lost if sent just after bind HOT 2
- Included FindZeroMQ.cmake only works if ZeroMQ built with Visual Studio IDE HOT 1
- Message can be lost if the sender exits right after sending it
- Example in README.md is broken
- Add Support for Radio-Dish Pattern
- Disable install targets in CMakeLists.txt
- Make new release tag HOT 1
- Make new release tag
- io_context destructor hangs in zmq_ctx_term() if async socket operation is still pending HOT 1
- Build error on ARM64/Ubuntu 18.04 platform (nVidia Xavier)
- async_receive is not cancellable by the OR awaitable operator HOT 1
- cancel() runs completion handlers immediately but should post/defer them instead HOT 3
- Building with CMake
- Completion of async operation using boost::asio::yield_context not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azmq.