Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-09-27 16:36:43


On 09/27/2005 03:24 PM, Calum Grant wrote:
[snip]
> Is there any interest in providing relational containers in Boost? Are
> there any features/improvements you can suggest for RML?
http://visula.org/relational/implementation.html contains:

   The reason this has to be a macro is because it needs to work with
   names, not just types. It was felt that the benefits of being able to
   write customer.name or customers.name instead of column<1>(customers)
   or col<1,1>() outweighs the inherent disadvantages of using a macro.

why not use an enumerator:

    column<name>(customers)

instead of a number:

    column<1>(customers)

? Would this eliminate the macro need? This idea of using enumerators
for easier reading was one motivation for the indexed_types library
in the sandbox:

http://cvs.sourceforge.net/viewcvs.py/boost-sandbox/boost-sandbox/boost/indexed_types/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk