Change thosestd::vector<String>tostd::vector<T>where each T is String or const char* to avoid malloc(3). That'sanotheridea in the sense that it would be anadditionalidea. If astd::vector<icinga::String>copies every string when it grows because its constructor/assign operators are implemen...
String *names = static_cast<String *>(::operator new( BUFSIZ )); names[0] = "Sakamoto"; // oops! delete [] uninitialized pointer! In this case, names refers to uninitialized storage because we called operator new directly, avoiding implicit initialization by String's default constructor; na...