From dbd38a24f80bd2b8d5603adf840e2651ee14ab5b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 4 Apr 2018 17:15:03 -0700 Subject: fixup! lib: adding == and != for uhd::dict The original code was fine, but it required the caller to be using C++11. --- host/include/uhd/types/dict.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/include/uhd/types/dict.ipp b/host/include/uhd/types/dict.ipp index 9ff64ee2b..b172d17f1 100644 --- a/host/include/uhd/types/dict.ipp +++ b/host/include/uhd/types/dict.ipp @@ -117,7 +117,7 @@ namespace uhd{ if (this->size() != other.size()){ return false; } - for(auto &p : _map){ + BOOST_FOREACH(const pair_t& p, _map) { if (not (other.has_key(p.first) and other.get(p.first) == p.second)){ return false; } -- cgit v1.2.3