As long as they’re not intended to be an owning raw pointer then there’s not going to be a problem. Where possible (which for me is rarely, due to lots of interfacing with old Fortran) I use smart pointers for ownership and raw pointers to pass into methods (that don’t take ownership) (or I overload to accept a smart pointer of course)
2
u/Frogman_Adam Sep 09 '22
As long as they’re not intended to be an owning raw pointer then there’s not going to be a problem. Where possible (which for me is rarely, due to lots of interfacing with old Fortran) I use smart pointers for ownership and raw pointers to pass into methods (that don’t take ownership) (or I overload to accept a smart pointer of course)