Skip to content
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

Tests fail to build with boost >= 1.84.0 #214

Closed
panicgh opened this issue Jan 7, 2025 · 0 comments · Fixed by #215
Closed

Tests fail to build with boost >= 1.84.0 #214

panicgh opened this issue Jan 7, 2025 · 0 comments · Fixed by #215

Comments

@panicgh
Copy link

panicgh commented Jan 7, 2025

With boost 1.83.0 unit tests still build fine, but from 1.84.0 and later building fails. For example:

azmq> /build/source/test/cpp20/socket/main.cpp:32:18: error: 'BOOST_CURRENT_FUNCTION' was not declared in this scope; did you mean 'BOOST_CURRENT_LOCATION'?
azmq>    32 |     sb.bind(subj(BOOST_CURRENT_FUNCTION));
azmq>       |                  ^~~~~~~~~~~~~~~~~~~~~~
azmq>       |                  BOOST_CURRENT_LOCATION

GCC's suggestion is in this case wrong and instead one probably needs to #include <boost/current_function.hpp>. The file and macro is available since boost 1.65.0. Maybe it was transitively included in previous boost releases, but is not anymore so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant