Change thosestd::vector<String>tostd::vector<T>where each T is String or const char* to avoid malloc(3). "C string literals"we use in Icinga DB to assemble Redis cmds. Mar 6, 2025 @yhabteabCan you please add some explanation tof15f99fwhy this is done (just like for the other c...
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...