Boost logo

Boost :

From: Robert Kawulak (kawulak_at_[hidden])
Date: 2006-01-19 06:06:34


> From: Jeff Garland

> Well, as you're already aware there are versions of these
> things that are used
> in the implementation of date-time. The basic requirements

[snip reqirements]

Thanks! I've taken a glance at them and it seems the library
already fulfills all but...

> 2) These need special addition/subtraction with
> remainder/overflow. So, for
> example, take the following
> wrapping_int<integer, 1, 7> wi; //wi == 1;
> wi.add(8); // wi == 2 -- returns 1 (wrapped once)
> wi.subtract(8); //wi == 1 -- returns 1 (wrapped once)

Well, this needs thinking over...

> I'm also interested in your string stuff -- is there a
> current draft of stuff
> posted somewhere?

Not yet, I'll do this as soon as the code is suitable for posting

> Also, I'd be willing at some point to
> experiment with
> replacing my date-time implementations with yours -- it would
> be an easy way
> to test that I got all the use cases right ;-)

That's a great idea!

Best regards,

Boost list run by bdawes at, gregod at, cpdaniel at, john at