|
Boost : |
From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 1999-12-30 07:15:54
scleary_at_[hidden] writes:
[...]
| P.S. Gaby - why isn't 'volatile' portable? All it means is "don't optimize
| this".
Portable libraries best avoid 'volatile' because its semantics is
implementation-defined. What constitutes an optimization varies from
one compiler to another, from one version of the same compiler to
another...
There is a well known OS whose chief maintainer rejects any patch that
contains 'volatile'.
-- Gaby
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk