
7 Dec
2005
7 Dec
'05
3:01 p.m.
Joel de Guzman wrote:
I suggest an integer<N> class that uses built-ins when it's detected that the compiler/platform supports N bits and switch to an emulated fixed precision integer of N bits when it is not available as a built-in. I also suggest that such a class would be generally useful in boost.
I agree with you on that it would be generally useful for Boost and that it should fall back to the intrinsic types whenever possible. But wouldn't such a thing restrict Wave to one precision only (in the end N will be a compile time constant). What I really would like to see is something runtime configurable. Or do you had in mind an integer<N>, where N is some possible maximum defined at compile time? Regards Hartmut