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
socket_pdu_impl.cc: fix build with boost 1.70.0 #2451
Conversation
Fix #2446 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
I think this is a good solution to the Boost issue here. We need to test it to verify, which means installing Boost 1.70.0 ... which might take a bit so please have patience! |
#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s)->get_executor().context()) | ||
#else | ||
#define GET_IO_SERVICE(s) ((s)->get_io_service()) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommended in boostorg/asio@59066d8#commitcomment-33184421
The 1.70 cast is potentially unsafe
As noted already, the cast is potentially unsafe. We also have the issue that |
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as #2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible. This is a backport of the same fix for GR38: gnuradio@c01473b
NOTE: There have been multiple fixes proposed, such as gnuradio#2451 . This one is the simplest and most compatible.
Fix #2446
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com