On Friday 17 June 2005 13:40, Andreas Tille wrote: > > It's only compilable in its current state with g++-2.95 (regarding > > compilers in Debian stable). There is a single error when compiling with > > g++-3.4 which I am unable to fix (as I don't know the STL at all). > > Thanks for investigating this. It would be great if somebody could fix > this issue which is probably not much effort for a C++ programmer. If > it would compile nicely I would take the package (or would leave it for > somebody who cares for it inside Debian).
I haven't tested this change but it does compile.
--- finddupes.cpp.orig 2005-06-17 13:57:57.000000000 +0100 +++ finddupes.cpp 2005-06-17 13:57:36.000000000 +0100 @@ -96,12 +96,13 @@ vector<Fingerprint> a; while(cin.getline(buf, buf_size)) { + Fingerprint fp; char *p = strchr(buf, ':'); if(!p) continue; - a.push_back(); - a.back().name = string(buf, p - buf); - hex_convert8(a.back().u, p + 1); + fp.name = string(buf, p - buf); + hex_convert8(fp.u, p + 1); + a.push_back(fp); } size_t n = a.size();