Sometimes when I have to call an old C interface, I really wish that std::string...

@charette@mstdn.ca

Sometimes when I have to call an old C interface, I really wish that std::string accepted NULL. I mean, in a way it is nice to see std::string constructor throw "basic_string::_M_construct null not valid".

But it is *so* common in C that an API which returns a string returns NULL when a string isn't available. #cpp