You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if deprecated things were annotated with [[deprecated]] so one can get compiler warnings before the things are removed. If this gets too noisy, users could define BOOST_ASIO_NO_DEPRECATION_WARNINGS2 or something similar. Explicitly opting out is much better than requiring opt-in. I'm okay with removing stuff in minor releases3, but it's important to actively notify users about it - expecting users to use BOOST_ASIO_NO_DEPRECATED or to actively check the documentation for all their used functions is not enough in my opinion, we have [[deprecated]] for a reason.
Footnotes
This release is not available in this repository, only in the Boost one. ↩
Or even better: BOOST_ASIO_NO_DEPRECATION_WARNINGS_SINCE(1, 33) to disable deprecations introduced after 1.33. ↩
Ideally, the project would use semantic versioning, but I understand that this isn't possible. ↩
The text was updated successfully, but these errors were encountered:
tbf, allowing newer deprecations ("disable deprecations after 1.xx") is a bit harder, because the macros would need to be "unrolled" i.e. there would need to be a macro for each version (e.g. ASIO_DEPRECATED_1_33).
Boost 1.87.0 (specifically ASIO 1.331) breaks https://github.com/zaphoyd/websocketpp by removing
io_service
and more (yes, I know about Boost.Beast).It would be great if deprecated things were annotated with
[[deprecated]]
so one can get compiler warnings before the things are removed. If this gets too noisy, users could defineBOOST_ASIO_NO_DEPRECATION_WARNINGS
2 or something similar. Explicitly opting out is much better than requiring opt-in. I'm okay with removing stuff in minor releases3, but it's important to actively notify users about it - expecting users to useBOOST_ASIO_NO_DEPRECATED
or to actively check the documentation for all their used functions is not enough in my opinion, we have[[deprecated]]
for a reason.Footnotes
This release is not available in this repository, only in the Boost one. ↩
Or even better:
BOOST_ASIO_NO_DEPRECATION_WARNINGS_SINCE(1, 33)
to disable deprecations introduced after 1.33. ↩Ideally, the project would use semantic versioning, but I understand that this isn't possible. ↩
The text was updated successfully, but these errors were encountered: