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

> That C code wouldn't work if the strings in the map are mutable (which they are in C++). It wouldn't work if the strings were allocated dynamically either

I don't see why not? You'll have to decide the ownership semantics if they're dynamically allocated but that's it?



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

Search: