aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-01 06:17:28 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-01 06:17:28 +0000
commit364b888d35f5acdef3721025e02210bce5ae3082 (patch)
tree5d888d8b886e60192e60216fa3cbc12760d95018 /src
parentcfcfbf452a96da757420ad87a22c9e25409c975e (diff)
downloadlibbu++-364b888d35f5acdef3721025e02210bce5ae3082.tar.gz
libbu++-364b888d35f5acdef3721025e02210bce5ae3082.tar.bz2
libbu++-364b888d35f5acdef3721025e02210bce5ae3082.tar.xz
libbu++-364b888d35f5acdef3721025e02210bce5ae3082.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/archive.h5
1 files changed, 2 insertions, 3 deletions
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
184 ar << h.size(); 184 ar << h.size();
185 for( typename Hash<key,value>::iterator i = h.begin(); i != h.end(); i++ ) 185 for( typename Hash<key,value>::iterator i = h.begin(); i != h.end(); i++ )
186 { 186 {
187 std::pair<key,value> p = *i; 187 //std::pair<key,value> p = *i;
188 ar << p.first << p.second; 188 ar << (i.getKey()) << (i.getValue());
189 } 189 }
190 190
191 return ar; 191 return ar;
@@ -207,7 +207,6 @@ namespace Bu
207 207
208 return ar; 208 return ar;
209 } 209 }
210
211} 210}
212 211
213#endif 212#endif