Boost logo

Boost :

From: Steve Hutton (shutton_at_[hidden])
Date: 2006-10-06 01:37:41


On 2006-10-06, Mateusz Loskot <mateusz_at_[hidden]> wrote:
> loufoque wrote:
>> Nicola Musatti wrote:
>>
>>> std::cout << r[0].as<long>() << "\t ";
>>
>> Maybe r[0] could be a boost::any or something of the like ?
>
> Currently, SOCI uses similar concept of type holder (near line 284)
>
> http://soci.cvs.sourceforge.net/soci/src/core/soci.h?view=markup

SOCI's TypeHolder is just an implementation detail. In fact I
originally prototyped it using boost::any, but replaced it later,
since SOCI is meant to not require boost.

> IMHO, boost::any seems interesting subject for boostification task.

Sure, or boost::variant. But again this is an implementation
detail - the public interface is via SOCI::Row.

Steve


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