From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-03-22 04:56:42
Janusz Piwowarski wrote:
>> > And, second question, do you think about interface to create own
>> > validators?
>> If you want to customize the parsing, the current way is:
>> 1. Declare some class derived from typed_value<YourType> and override the
>> 'parse' method.
>> 2. Specialize the 'value' function to return instance of your type.
> It's it, thanks.
In fact, I've given you the most powerfull method, which can be used to
override everything. For changing the parsing behaviour, specializing
'validator' might be easier.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk