Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>AFAIK there isn't a way to create an std::string out of that without a copy.

You can use std::string_view, Google's StringPiece or llvm::StringRef.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: