Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-01-18 11:55:04

"Peter Dimov" <pdimov_at_[hidden]> writes:

> Alexander Terekhov wrote:
>> Peter Dimov wrote:
>> [...]
>>> Local static objects can be made safe by the compiler. The new cxx64
>>> API requires it.
>> Too bad that new cxx64 ABI couldn't mandate a standard #pragma (or
>> something like that) to turn it on/off ("you should not pay for what
>> you don't use" motto, you know).
> I actually think that not offering a way to turn it off is somewhat better,
> long term. Without an option to turn it off, compiler writers are forced to
> optimize local statics (using DCSI-MBR/DCCI/whatever).

Any compiler writer is free to offer a way to turn it off as an
extension. They're also free to not use those optimizations.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at