[Miwi-middleware] RFC: NetworkContext opaque object

Mathias Hablützel habl at zhaw.ch
Thu May 15 09:08:22 CEST 2014


On Wed, May 14, 2014 at 05:00:21PM +0000, Dmitri Rubinstein wrote:
> Why io_service_ is a shared_ptr ? Boost::asio does not support this. 
> NetworkContext should be shared IMHO, and all classes that use it should 
> store shared pointer to it. Then there is a guarantee that encapsulated 
> boost::asio::io_service will stay as long as users of  NetworkContext do 
> exist.

Is it possible to enforce this? So that you only can use this object
via a boost::shared_ptr?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.fiware.org/private/miwi-middleware/attachments/20140515/c0863e68/attachment.pgp>


More information about the Miwi-middleware mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy