|
Boost : |
Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-03-26 19:22:18
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> I tried several different ways to convert native integer types to
>> xint::integer. That's the best one I found. If you could suggest an
>> alternative, I'd certainly be willing to entertain it.
>
> template<class T>
> explicit integer(const T& arg, typename
> boost::enable_if<boost::is_integral<T> >::type* = 0);
That would essentially be identical to what I've got now, but would only
be active on integer types?
- --
Chad Nelson
Oak Circle Software, Inc.
*
*
*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkutQakACgkQp9x9jeZ9/wSwwQCfYB1c6ufh9k11JqUXVHj1N29i
5TsAoICNrrht92KpABGRtJsQM0yahcYw
=OUlg
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk