How do reference-counting smart pointer's avoid or handle reference-counter overflows?

Viewed 572

In a naive reference-counting smart pointer implementation, the reference-counter could overflow. How is this overflow avoided or handled in C++ standard library implementations?

1 Answers
Related