std::vector<univ::lecture> *p_lecture = getNewLectVec(); // size = 0
p_lecture[0] -> work();
// ^Warning: on vec<T, ...>.operator[]: size of vec<...> is 0, returning nullptr
Error: cannot read data from &nullptrstd::vector<univ::lecture> *p_lecture = getNewLectVec(); // size = 0
p_lecture[0] -> work();
// ^Warning: on vec<T, ...>.operator[]: size of vec<...> is 0, returning nullptr
Error: cannot read data from &nullptrIf you have a fediverse account, you can quote this note from your own instance. Search https://serafuku.moe/notes/aik03u0znt on your instance and quote it. (Note that quoting is not supported in Mastodon.)