From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types) - Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be , but not all of our compilers support that). --- host/lib/experts/expert_container.cpp | 8 ++++---- host/lib/experts/expert_nodes.hpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'host/lib/experts') diff --git a/host/lib/experts/expert_container.cpp b/host/lib/experts/expert_container.cpp index 78c783790..1d945aa42 100644 --- a/host/lib/experts/expert_container.cpp +++ b/host/lib/experts/expert_container.cpp @@ -151,11 +151,11 @@ public: const dag_vertex_t& vertex = _get_vertex(*vi.first); if (vertex.get_class() != CLASS_WORKER) { dot_str += str(boost::format(" %d [label=\"%s\",shape=%s,xlabel=\"%s\"];\n") % - boost::uint32_t(*vi.first) % vertex.get_name() % + uint32_t(*vi.first) % vertex.get_name() % DATA_SHAPE % vertex.get_dtype()); } else { dot_str += str(boost::format(" %d [label=\"%s\",shape=%s];\n") % - boost::uint32_t(*vi.first) % vertex.get_name() % WORKER_SHAPE); + uint32_t(*vi.first) % vertex.get_name() % WORKER_SHAPE); } } @@ -165,8 +165,8 @@ public: ++ei.first ) { dot_str += str(boost::format(" %d -> %d;\n") % - boost::uint32_t(boost::source(*(ei.first), _expert_dag)) % - boost::uint32_t(boost::target(*(ei.first), _expert_dag))); + uint32_t(boost::source(*(ei.first), _expert_dag)) % + uint32_t(boost::target(*(ei.first), _expert_dag))); } dot_str += "}\n"; return dot_str; diff --git a/host/lib/experts/expert_nodes.hpp b/host/lib/experts/expert_nodes.hpp index a704023a3..6040cd19e 100644 --- a/host/lib/experts/expert_nodes.hpp +++ b/host/lib/experts/expert_nodes.hpp @@ -29,6 +29,7 @@ #include #include #include +#include namespace uhd { namespace experts { @@ -94,7 +95,7 @@ namespace uhd { namespace experts { return os.str(); } - static std::string print(const boost::uint8_t& val) { + static std::string print(const uint8_t& val) { std::ostringstream os; os << int(val); return os.str(); -- cgit v1.2.3