From 364b888d35f5acdef3721025e02210bce5ae3082 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 1 Jul 2007 06:17:28 +0000 Subject: A minor bugfix in the Bu::Archive was preventing compilation when archiving a Bu::Hash due to the new return value of the unary (*) extraction operator in the iterators. --- src/archive.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/archive.h b/src/archive.h index 6c0c1df..a2d4c8f 100644 --- a/src/archive.h +++ b/src/archive.h @@ -184,8 +184,8 @@ namespace Bu ar << h.size(); for( typename Hash::iterator i = h.begin(); i != h.end(); i++ ) { - std::pair p = *i; - ar << p.first << p.second; + //std::pair p = *i; + ar << (i.getKey()) << (i.getValue()); } return ar; @@ -207,7 +207,6 @@ namespace Bu return ar; } - } #endif -- cgit v1.2.3