Grass Valley Interview Question

What problem does weak_ptr solve in C++?