Where should g++ find a 'max' macro or function ?
Eljay Love-Jensen
eljay@adobe.com
Tue Nov 11 13:19:00 GMT 2003
Hi Michael,
I usually look in the C++ header files themselves. Note: some compilers (*cough* Microsoft *cough) are not ISO 14882 compliant/up-to-date, and may put the symbols in the incorrect header file (if not missing the sanctioned symbol entirely)... so some caution is warranted.
Or I refer to "The C++ Programming Language" (3rd ed, or special ed) by Bjarne Stroustrup.
If you are a glutton for punishment, the ISO 14882 specification is the gospel. But it's not light reading. Cures insomnia, though.
HTH,
--Eljay
More information about the Gcc-help
mailing list