There is no allocator rebinding for some STL containers i.e. std::vector, so the following code dose not compiled:
#include <vector> #include <string> using namespace std; typedef std::vector<std::string, std::allocator<int> > Vec; Vec v; -- Summary: Bug in std::vector Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: michael at xter dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20690