Require C++17 (for UHD 4.x headers)#75
Open
plusky wants to merge 1 commit into
Open
Conversation
UHD 4.x public headers use std::optional and std::is_convertible_v (e.g. uhd/rfnoc/actions.hpp, uhd/utils/cast.hpp), which need C++17. Building against the current default (C++14) fails to compile them.
bmwiedemann
pushed a commit
to bmwiedemann/openSUSE
that referenced
this pull request
Jun 18, 2026
https://build.opensuse.org/request/show/1360306 by user pluskalm + anag_factory soapy-uhd: fix the build against UHD 4.x (C++17, needed by UHD's std::optional/std::is_convertible_v headers) and recent Boost (explicit boost/lexical_cast.hpp include), rescuing it from the botdel (SR 1360107). No version change (already at latest). Both fixes submitted upstream: pothosware/SoapyUHD#75 and #76.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UHD 4.x public headers use
std::optionalandstd::is_convertible_v(e.g.uhd/rfnoc/actions.hpp,uhd/utils/cast.hpp), which require C++17. With the currentCMAKE_CXX_STANDARD 14the build fails to compile those headers on a modern UHD. Bump the standard to 17.