
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/04/2010 01:17 PM, Jeffrey Lee Hellrung, Jr. wrote:
Your use of enable_if could be simplified into a single argument for the integer constructors by using mpl::and_.
Thanks for the suggestion, but I'd like to keep the dependencies and compile times at a minimum. [...]
IMHO, using multiple "typename enable_if<...>::type* = 0" in a constructor is just fine. It makes the clauses line up a little more uniformly (to me). Just remember, you'll have to use boost::mpl::and_ (or similar) if you need short-circuiting.
Thanks for the tip. I hadn't even considered a need to short-circuit the enable_if evaluations, or that there might be a way to do it if I had one. - -- 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/ iEYEARECAAYFAkvgWysACgkQp9x9jeZ9/wSXSQCeIyasIc5piDy1ddrJ/brNDDHC H8MAnRhkH9nENurfNk4zJjl4N0SQ20LH =pksq -----END PGP SIGNATURE-----