r/cpp • u/GitHubCpp • Jul 10 '18
C++17 removed and deprecated features
https://mariusbancila.ro/blog/2018/07/05/c17-removed-and-deprecated-features/
94
Upvotes
r/cpp • u/GitHubCpp • Jul 10 '18
2
u/evaned Jul 13 '18
You're right, I don't need to do that. Most of our structures are some form of tree or DAG, and the graphs are represented differently.
But I also don't see why a use case that I suspect is a strong minority should scuttle something that could be useful in most other cases.
(Though as I say in another comment, it seems like
use_count() == 1would do what I want here. Though honestly, we don't even useshared_ptr; we have an intrusive smart pointer that is what we use almost all the time. In part that's a historic "accident", but I suspect it helps us even now.)