
| -----Original Message----- | From: boost-bounces@lists.boost.org | [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Kawulak | Sent: 18 January 2006 13:09 | To: boost@lists.boost.org | Subject: [boost] [constrained_types] Use cases survey | | Some time ago there was a discussion on the Constrained Types | library. Unfortunately other duties didn't let me work on it for | a long time (I apologise for this long break), but recently I | started the work again. Good! Boost needs them. | - Is it worth to make different implementation of | increment/decrement functions for integer types to make them much | more efficient than the generic versions? I doubt it. | - Is such a feature likely to be needed: a possibility to select | different out-of-bounds policies for both the bounds, e.g. throw | when the lower bound is exceeded, clip when upper bound is | exceeded. Yes, definitely would add value, but sounds expensive. | - How often would people need this library to work with types | other than integral or floating-point? What kind of types would | it be (cheap/expensive to copy)? My guess if that builtin types will be by far the most common, but if UDTs are possible at no extra cost ... complex? interval? tuples? Paul -- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB Phone and SMS text +44 1539 561830, Mobile and SMS text +44 7714 330204 mailto: pbristow@hetp.u-net.com http://www.hetp.u-net.com/index.html http://www.hetp.u-net.com/Paul%20A%20Bristow%20info.html