String missing push_back()

Bruce Eckel Bruce@EckelObjects.com
Thu Dec 10 12:43:00 GMT 1998


This should work, it's in the FDIS:
#include <string>
using namespace std;
int main() {
  string s;
  s.push_back('c');
}
=============================
Bruce Eckel    http://www.BruceEckel.com
Contains free electronic books: "Thinking in Java" & "Thinking in C++ 2e"





More information about the Gcc-bugs mailing list