|
Re: Should we use std::unique_ptr?
Yes WPIlib is moving to using more of the standard library pointer wrappers. I like using them because it makes it way easier to manage the code. Also you don't have to cast to a subsystem pointer. We do
Requires(Robot::drivebaseSubsystem.get());
And it works fine for us.
I doubt that they will overload the functions to accept both. The whole reason they switched was to make it easier for teams to debug.
|