19 Feb
2010
19 Feb
'10
3:52 p.m.
On Fri, Feb 19, 2010 at 2:07 AM, David Kaplan
On 18 February 2010 18:00, Jonathan Franklin
wrote: Note that if you need to delay the creation of the socket, you might consider using a smart pointer to a socket.
This should solve the issue - thanks! Will try it out...
I wasn't recommending that you use this idiom to solve your io service initialization problem. For that, you should use the idiom that Igor suggested. But I frequently find myself not knowing how many sockets will be needed a priori, or otherwise needing to delay allocation. In which case, some form of smart pointer works great. Jon