[Cfp-interest 1236] Action Item: Evaluation of Literals
Ian McIntosh
ianmc at eol.ca
Wed Jan 23 12:35:59 PST 2019
Last meeting I was wrong. C++ does not have a pragma to control
literal evaluation precision. It just does it the right way.
Some approaches we could take:
1. Do nothing.
2. Treat this as a bug in the current standard and change it to
match C++ (likely getting complaints).
3. Make it an implementation option, so the compiler vendor has to
document what they do.
4. Add a compiler-defined macro so the program can detect what the
compiler will do, and possibly select alternate code like explicitly
converting precision.
5. Add a user-defined macro so the program can tell the compiler
what to do (eg, new improved behavior or stay compatible with old).
6. Same as #5 but with a pragma.
7. Other?
- Ian McIntosh
More information about the Cfp-interest
mailing list