/usr/include/c++/4.0.0/tr1/hashtable lines 1345-1365 is a hash-table's erase method declared to return a size_type. The method does not seem to return any value, though; g++ warns about this when I try to use std::tr1::unordered_map's erase.
g++ --version outputs: g++ (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8) Thanks! -- Summary: std::tr1::unordered_map's erase does not seem to return a value Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: atavory at gmail dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24054