From 5d9a7c92d3eb0a9cb719e6e6386d533da59a51db Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Apr 2018 13:13:32 -0700 Subject: lib: Purge use of boost::assign, except for uhd::dict Replaced with initialization lists. Note: uhd::dict does not work with initializer lists without making changes to said data structure. This commit has no functional changes, so keeping the boost::assigns for uhd::dict. --- host/lib/rfnoc/nocscript/expression.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'host/lib/rfnoc/nocscript/expression.cpp') diff --git a/host/lib/rfnoc/nocscript/expression.cpp b/host/lib/rfnoc/nocscript/expression.cpp index 41b9c5403..1a7f3ee94 100644 --- a/host/lib/rfnoc/nocscript/expression.cpp +++ b/host/lib/rfnoc/nocscript/expression.cpp @@ -9,18 +9,17 @@ #include "function_table.hpp" #include #include -#include #include using namespace uhd::rfnoc::nocscript; -std::map expression::type_repr = boost::assign::map_list_of - (TYPE_INT, "INT") - (TYPE_DOUBLE, "DOUBLE") - (TYPE_STRING, "STRING") - (TYPE_BOOL, "BOOL") - (TYPE_INT_VECTOR, "INT_VECTOR") -; +std::map expression::type_repr{ + {TYPE_INT, "INT"}, + {TYPE_DOUBLE, "DOUBLE"}, + {TYPE_STRING, "STRING"}, + {TYPE_BOOL, "BOOL"}, + {TYPE_INT_VECTOR, "INT_VECTOR"} +}; /******************************************************************** * Literal expressions (constants) -- cgit v1.2.3