From f47df4d1a83289043ef40469141aaa03d0c60d35 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Fri, 9 Jul 2021 17:02:06 -0500 Subject: host: Add static_assert to prevent meta_range_t(0,0) meta_range_t(0,0) actually calls the iterator-based constructor for meta_range_t, which is almost certainly not the intended constructor for that call syntax. Therefore, we add a static_assert to prevent such usage, and fix all failing instances. --- mpm/lib/mykonos/ad937x_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm') diff --git a/mpm/lib/mykonos/ad937x_ctrl.cpp b/mpm/lib/mykonos/ad937x_ctrl.cpp index f4abae7a7..7cd5c1d98 100644 --- a/mpm/lib/mykonos/ad937x_ctrl.cpp +++ b/mpm/lib/mykonos/ad937x_ctrl.cpp @@ -129,7 +129,7 @@ uhd::meta_range_t ad937x_ctrl::get_rf_freq_range(void) uhd::meta_range_t ad937x_ctrl::get_bw_filter_range(void) { // TODO: fix - return uhd::meta_range_t(0, 1); + return uhd::meta_range_t(0.0, 1.0); } std::vector ad937x_ctrl::get_clock_rates(void) -- cgit v1.2.3