Why was that? Was it too problematic to just call std::string::clear ?
It's a somewhat common pattern in C, but requires care.
C++ isn't C, though.
Why was that? Was it too problematic to just call std::string::clear ?