[squid-dev] [PATCH] polish Config2 using C++11 features
Amos Jeffries
squid3 at treenet.co.nz
Sat Oct 1 04:41:30 UTC 2016
On 1/10/2016 4:38 a.m., Amos Jeffries wrote:
> We now seem to have had several patches successfully use members
> declared with default values and/or with the "*this = Foo();" shortcut
> for a reset/clear method.
>
> So I think we can start using these to replace old C-style
> initialization and clear() functions.
>
> This patch begins by replacing the Config2 use of memset(). I for one am
> constantly mistaking which of the Config objects has memset() applied to
> it at the global level when reconfigure happens. Now we do not need to
> care, each object handles its own clearing one way or another.
>
Applied as trunk r14861.
Amos
More information about the squid-dev
mailing list