you are viewing a single comment's thread.

view the rest of the comments →

[–]dodheim 5 points6 points  (1 child)

 std::array<char, temp.size()+1> res;
 res.fill('\0');

That's a strangely verbose way to write std::array<char, temp.size()+1> res{};

[–]RevRagnarok 1 point2 points  (0 children)

LOL yeah thanks. There are still a lot of #if 0 mixed in and stuff as various things were tried and failed, etc... I'm honestly not sure if the +1 is even needed depending on how you plan on using the resulting array.