
20 Oct
2005
20 Oct
'05
6:58 p.m.
I'm very impressed by Robert Kawulak's contrained_types. I'm mostly interested in contrained integral types. constrained_types appears to concentrate on types whose bounds are specified at compile time (integral constant template parameters). I'm more interested in bound specified at runtime. I believe (without proof) that for many applications there will be little performance difference. I say this because I'm expecting in many (most?) cases the actual integral values will be known to the compiler. Has any thought been given to adding this? Or, perhaps even making this the default bounded_int, (wrapping_int, etc.) type?