[squid-dev] [PATCH] Broken trunk rev14778
Alex Rousskov
rousskov at measurement-factory.com
Mon Aug 8 18:01:50 UTC 2016
On 08/08/2016 04:43 AM, Amos Jeffries wrote:
> r14778: Move static member Last into change() method to avoid initialization order
> errors when a caller uses a global InstanceId object before the library
> instantiating its template is initialized.
Have you seen these Last errors? Constant initialization like "static
int Last = 0" happens before any code runs. If you saw these errors,
there must be something special about templates in this context that I
do not know about (and would like to learn).
http://en.cppreference.com/w/cpp/language/constant_initialization
Thank you,
Alex.
More information about the squid-dev
mailing list