kicad-developers team mailing list archive
Mailing list archive
Re: Coding style question
> - always use std::shared_ptr<TYPE> explicitly?
I'd vote for explicit smart pointers in function signatures and member
definitions, and "auto" in places where it can be deduced.
MSVC's /ANALYZE also has some helpful diagnostics like C26418 "Shared
pointer parameter X is not copied or moved. Use T* or T& instead." to find
instances where smart pointers wouldn't be needed.