
15 Jun
2010
15 Jun
'10
8:38 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/15/2010 06:02 AM, Adam Merz wrote:
A quick request: can you give integer_t a safe bool conversion operator? [...]
Done. Changes are in the Sandbox.
Since integer_t has operator! but no bool conversion operator, I've been using 'if (!!i) { ... }' to avoid creation of a temporary, which looks a bit silly.
It looks perfectly normal to us grizzled veterans of C. :-) - -- 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/ iEYEARECAAYFAkwX5LYACgkQp9x9jeZ9/wSlMQCgm4j1ioj/KRoh5Gv3KK2GOgKx KbYAn3y48sPyKxfRj5DfvXGwB/laCM9h =sUMd -----END PGP SIGNATURE-----