3 ms·
> Modern C++ favors RC. Does it? I was under the impression that the order of preference (from most preferred to least) is something like: - plain values (i
by dbaupp 12y ago
> Modern C++ favors RC.
Does it? I was under the impression that the order of preference (from most preferred to least) is something like:
- plain values (i.e. no pointers)
- references
- unique_ptr
- shared_ptr
- raw pointers
- pjmlp 12y agoRaw pointers is the last item on your list after RC pointers.
- dbaupp 12y agoFrom this response, I guess that maybe you were meaning C++ favours RC compared to manual memory management, and were not saying that it is the globally preferred option, but this differs to everything else in your list: the others are the main/preferred strategy in those languages/libraries.
- pjmlp 12y ago> I guess that maybe you were meaning C++ favours RC compared to manual memory management, Yes. > the others are the main/preferred strategy in those languages/libraries. While true, manual memory management is still possible, but should be left for the 1% cases that really benefit from it.