3 ms·
> 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
by fctorial 7y ago
> 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?