
5 Mar
2011
5 Mar
'11
9:31 p.m.
On Sat, 5 Mar 2011 13:12:34 -0500 Gordon Woodhull <gordon@woodhull.com> wrote:
Since I had to_string and to_binary, a set of to_integer functions would have been ideal. But to *what* integer? The type is a template with many options. The best I could come up with would have required client code like this:
value = to_integer<integer>(...)
Making those constructors eliminated the need to specify a type parameter to a function, allowing this instead:
value = integer(...)
Don't you still have to specify any template parameters here?
You would for the type, except that I'm fairly certain everyone will typedef it to a simple name, or use the predefined xint::integer and xint::nothrow_integer types. -- Chad Nelson Oak Circle Software, Inc. * * *