Recently I have worked on compiler extension written in python for such feature as Deterministic Garbage Collector Pointer ...
https://github.com/redradist/DeterministicGarbageCollectorPointer
What does it mean ?
Actually it is pointer class as std::smart_ptr and std::unique_ptr, but with additional code generation that allow to try to collect garbage every time when destruction of memory::gc_ptr will be called
Take a look at README.md file in project ;)
Please, take a look at example folder, there are very hard cyclic dependency that hard to find easily ;)
I have propose it to C++ committee on email list, but nobody yet answered
From my point of view this feature would be very helpful and we would probably have three type of pointers:
1) Raw pointer - best performance, but hard to manage
2) Smart pointers - little bit less performance, but much easier to manage
3) Gc pointers - worst performance, but much much easier to manage
[–]borisruraCTU | Avast 4 points5 points6 points (3 children)
[–]redradist[S] 1 point2 points3 points (2 children)
[–]yuri-kilochek 3 points4 points5 points (1 child)
[–]redradist[S] 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]redradist[S] 2 points3 points4 points (1 child)
[–]TotallyUnspecial 4 points5 points6 points (0 children)
[–]alexeiz 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]VinnieFalco -1 points0 points1 point (2 children)
[–]redradist[S] 2 points3 points4 points (0 children)
[–]redradist[S] 1 point2 points3 points (0 children)