aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-04 17:15:03 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-05 09:05:01 -0700
commitdbd38a24f80bd2b8d5603adf840e2651ee14ab5b (patch)
treed2a6d6fbebc011fa874ae2e7efd87e274b1f3805 /host
parent1d0c25ef7d9fc9f0a2e1d171ade1adf56abaf03c (diff)
downloaduhd-dbd38a24f80bd2b8d5603adf840e2651ee14ab5b.tar.gz
uhd-dbd38a24f80bd2b8d5603adf840e2651ee14ab5b.tar.bz2
uhd-dbd38a24f80bd2b8d5603adf840e2651ee14ab5b.zip
fixup! lib: adding == and != for uhd::dict
The original code was fine, but it required the caller to be using C++11.
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/types/dict.ipp2
1 files changed, 1 insertions, 1 deletions
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;
}