
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/11/2010 10:48 AM, Eric Niebler wrote:
1) Some compilers don't support typeof in any form, even emulated. From looking at typeof.hpp, it looks like just #include'ing typeof.hpp on those compilers results in a hard error. I'd like a way to test whether typeof is supported and use it if so, otherwise do something else. How can I do that?
I can't answer your other two questions, but I'll take a shot at this one: I've seen scripts that try to compile trivial code that uses something questionable, and reads the response from the compiler to see if it worked. Then it configures the real project to use it or not. (I saw this used by VMware Tools, when compiled under Linux. I'm sure other Linux-based projects use it too.) I doubt that's what you were asking for, but if the library isn't designed to give you that information, it's the only way I know of to determine it. - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvqq2EACgkQp9x9jeZ9/wTCkQCcDmxhbN7BcC86vUyAvIhrZ+ig /noAn2Y3cYPu4gXVanjL3YWqvqm3+Zln =jJm3 -----END PGP SIGNATURE-----