From 72c7084e4bf7001aa29cd78dfa6a90c5629155fc Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Thu, 24 Sep 2020 19:00:58 -0500 Subject: uhd: replace default initializers with named ones This resolves an issue with building on older compilers. --- host/include/uhd/utils/graph_utils.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/graph_utils.hpp b/host/include/uhd/utils/graph_utils.hpp index 6a1c9cb48..c4d77b093 100644 --- a/host/include/uhd/utils/graph_utils.hpp +++ b/host/include/uhd/utils/graph_utils.hpp @@ -26,7 +26,9 @@ using block_port_def = std::tuple>; * some of their ports, so we can optionally include a port number. */ static const std::vector TERMINATOR_BLOCKS{ - {NODE_ID_SEP, boost::none}, {"Radio", boost::none}, {"NullSrcSink", 0}}; + block_port_def{NODE_ID_SEP, boost::none}, + block_port_def{"Radio", boost::none}, + block_port_def{"NullSrcSink", 0}}; /*! * Get a chain of blocks that statically connect back to a terminating block. This -- cgit v1.2.3