Comment on C++ Software Security Sins: Basic IssuesparentComments−bierjunge5ystd::array<char, 26> foo{}; foo.data(); // <- returns a pointer to foo's data inheriting it's type. so we get *char herestd::string would work in a similar way, except it would be `const`
Comments
std::array<char, 26> foo{}; foo.data(); // <- returns a pointer to foo's data inheriting it's type. so we get *char here
std::string would work in a similar way, except it would be `const`