20 Dec
2018
20 Dec
'18
12:29 a.m.
Hi, In many examples and even implementations, programmers like to pass boost::asio::io_service by raw pointer: MyClass::MyClass(boost::asio::io_service &io_service) : myRawIoService(io_service) {} Will this cause issues to pass raw pointer for large size of classes, should it be replaced by passing smart pointer: MyClass::MyClass(const std::shared_ptrboost::asio::io_service &io_service) : myIoService(io_service) {} Thank you.