Boost logo

Boost :

From: Corwin Joy (cjoy_at_[hidden])
Date: 2005-08-22 22:33:11


> Jonathan Wakely wrote:
>
>> How do you handle NULL values? the postgresql::row_set_imp::get()
>> function
>> doesn't seem to account for NULL, which would crash strlen(), atof() etc.
>
In DTL, Paul Harris actually just created a version of boost::optional to
handle NULL values which worked very well as a way to read and write types
that could be null. He also did mappings of the boost::posix_time class and
we also used a version of the boost:variant class to provide dynamically
bound types (where you don't know the types until runtime).


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