|
Boost : |
From: Darryl Green (green_at_[hidden])
Date: 2002-11-12 23:38:09
> -----Original Message-----
> From: Arkadiy Vertleyb [mailto:vertleyb_at_[hidden]]
> After these changes, one can define a column like this:
> // regular
> class c1 : public column_name<column<c1, int> > {};
>
> // calculated
> class Fn {
> template<class Tuple> int operator()(const Tuple& tuple) {
> ...
> }
> };
> class c2 : public column_name<calculated_column<c2, int, Fn> {};
>
> Fields can be accessed like this:
>
> tuple[c1()] = 5;
> int n = tuple[c2()];
All looks very nice/expected syntax and behaviour.
I downloaded the lib, read the docs and much of the code. I haven't tried to
use it yet, though I have a very real use for it coming up soon - hopefully
around review time assuming the submision goes ahead, which I certainly hope
it does.
Regards
Darryl Green.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk