In cases where constructor dependency injection is required, what are the considerations for using injection by reference compared to using boost :: shared_ptr ?
Is there any other general way to do this? How does it compare with the two methods described above?
c ++ pass-by-reference dependency-injection shared-ptr
Jonathan
source share