From c399ab8a9b69bca19843eac9ef6cf8e89f816bc4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 22 Jun 2021 12:43:39 +0200 Subject: zbx: Fix compilation on clang-10 The ostream<< overloads where in the wrong namespace to be found by the expert framework. Other compilers are more forgiving; not so clang 10. This enables compilation on that compiler. --- host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp b/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp index e6bbf2798..ef86f10b6 100644 --- a/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp +++ b/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp @@ -31,7 +31,7 @@ using namespace uhd::rfnoc; // ostream << operator overloads for our enum classes, so that property nodes of that type // can be added to our expert graph -namespace uhd { namespace experts { +namespace uhd { namespace usrp { namespace zbx { std::ostream& operator<<( std::ostream& os, const ::uhd::usrp::zbx::zbx_lo_source_t& lo_source) @@ -65,9 +65,6 @@ std::ostream& operator<<( UHD_THROW_INVALID_CODE_PATH(); } } -}} // namespace uhd::experts - -namespace uhd { namespace usrp { namespace zbx { void zbx_dboard_impl::_init_cpld() { -- cgit v1.2.3