Skip to content

Require C++17 (for UHD 4.x headers)#75

Open
plusky wants to merge 1 commit into
pothosware:masterfrom
plusky:cxx17-for-uhd4
Open

Require C++17 (for UHD 4.x headers)#75
plusky wants to merge 1 commit into
pothosware:masterfrom
plusky:cxx17-for-uhd4

Conversation

@plusky

@plusky plusky commented Jun 18, 2026

Copy link
Copy Markdown

UHD 4.x public headers use std::optional and std::is_convertible_v (e.g. uhd/rfnoc/actions.hpp, uhd/utils/cast.hpp), which require C++17. With the current CMAKE_CXX_STANDARD 14 the build fails to compile those headers on a modern UHD. Bump the standard to 17.

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.
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.

1 participant