|
From: P. D. <sh...@gm...> - 2008-09-05 15:39:59
|
On Fri, Sep 5, 2008 at 1:29 PM, Ignacy Gawedzki <sf...@qu...> wrote: > Hi, > > A little question while I'm skimming the source code: what's the point with > the protected copy-constructor of Server? I'm not asking why it is protected, > but why doesn't it do anything with the _pvt attribute, which remains 0. > it's just the C++ way of disallowing copies (but it should be private and not protected to make it clear, sorry) since there can't be copies around (they won't even work since their on_new_connection() would never be called, and honestly i can't see a use case where you'd need to do that anyway) the private smart pointer is useless, it could be a regular pointer feel free to throw that class away and rewrite it :-) |