BAE Systems Interview Question

Why would you use smart pointers over raw pointers?