Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero Newsgroups: comp.lang.c++ Subject: Re: Pre-main construction order in modules Date: Sun, 30 Mar 2025 20:17:23 +0200 Organization: A noiseless patient Spider Lines: 8 Message-ID: References: <48eGP.730204$J61.500281@fx08.ams4> <5HfGP.241316$i41.190620@fx06.ams4> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 30 Mar 2025 20:17:05 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="2cd8a133533088b08c4cfe8295267243"; logging-data="2211627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/plIxY+73tJvToZHW8R6l42jta/pv0ie0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:H8W3jrFcqk0In6szQrImgr4a4/Q= Content-Language: de-DE In-Reply-To: Bytes: 1871 Am 30.03.2025 um 20:11 schrieb Mr Flibble: > No what I meant was the Meyers Singleton which involves static local > variables NOT static member variables which is what YOU thought it meant. static local variables need double-checked locked initialization. That's rather slow to just get a reference.