aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2020-09-24 19:00:58 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-09-25 14:25:18 -0500
commit72c7084e4bf7001aa29cd78dfa6a90c5629155fc (patch)
tree097f865f0f626cd12ef01f830b5624689fd7e207 /host/include
parentb975885de26143d34d3f1baa7388a5d90449b2db (diff)
downloaduhd-72c7084e4bf7001aa29cd78dfa6a90c5629155fc.tar.gz
uhd-72c7084e4bf7001aa29cd78dfa6a90c5629155fc.tar.bz2
uhd-72c7084e4bf7001aa29cd78dfa6a90c5629155fc.zip
uhd: replace default initializers with named ones
This resolves an issue with building on older compilers.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/graph_utils.hpp4
1 files changed, 3 insertions, 1 deletions
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<std::string, boost::optional<size_t>>;
* some of their ports, so we can optionally include a port number.
*/
static const std::vector<block_port_def> 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