Skip to content

Include add_const for any_range with Boost 1.90.0 - #547

Merged
lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/boost-1.90-any-range
Nov 18, 2026
Merged

lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/boost-1.90-any-range

Conversation

@garethsb

Copy link
Copy Markdown
Contributor

Prepares for building on Ubuntu 26.04, which packages Boost 1.90.0. This PR doesn't add an ubuntu-26.04 runner.

In Boost 1.90.0, <boost/range/any_range.hpp> includes a header that uses add_const without including <boost/type_traits/add_const.hpp>. nmos/query_utils.cpp includes nmos/query_utils.h first, so it fails to compile with GCC 15 and Ubuntu 26.04's Boost. Boost.Range fixed this in boostorg/range@9ac89e99, which is in Boost 1.91.0, so this PR includes the header in nmos/query_utils.h.

The Conan builds are unaffected, because they use Boost 1.86.0. A throwaway run on my fork built nmos-cpp on ubuntu-26.04 against cpprest-lts and Ubuntu's Boost 1.90.0, and passed the unit tests and all the AMWA test suites with this change (https://github.com/garethsb/nmos-cpp/actions/runs/44316898534).

Co-authored-by: Gareth's 🤖 buddy

In Boost 1.90.0, <boost/range/any_range.hpp> includes a header that
uses add_const without including <boost/type_traits/add_const.hpp>.
nmos/query_utils.cpp includes nmos/query_utils.h first, so it failed to
compile with GCC 15 and Boost 1.90.0 on Ubuntu 26.04. Boost.Range fixed
this in boostorg/range@9ac89e99, which is in Boost 1.91.0.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb

Copy link
Copy Markdown
Contributor Author

@lo-simon the two failed jobs are intermittent failures, unrelated to this PR:

curl: (6) Could not resolve host: download.info.apple.com
The following tests FAILED:
	 39 - testMdnsBrowseAPIs (Failed)

@lo-simon
lo-simon merged commit 90be152 into sony:master Nov 18, 2026
10 of 12 checks passed
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 this pull request may close these issues.

2 participants