William Leong

Results 3 comments of William Leong

I've got a similar problem with ZMQ. For example: ``` zmqpp::context context; ObjectA instanceA(&context); //instanceA will use context to create threads to send and receive data from ZMQ ... ......

> I've got a similar problem with ZMQ. For example: > > ``` > zmqpp::context context; > ObjectA instanceA(&context); //instanceA will use context to create threads to send and receive...

> A RAII object is probably the most general solution (and I strongly recommend having a `scope_guard` variant in your codebase). > > However, if you can move the context...