CXX-276 Fix warning about auto_ptr to incomplete type