Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-01-23 13:13:31


"Samuel Krempp" <krempp_at_[hidden]> wrote

> > Do you plan to add operator=(const char*) into format?
> >
> Is using the parse(string) method unpractical ?
>
> The meaning of assigning from string is probably clear, but it's less
> explicit than parse(), and I wouldn't define 2 functions for the same
> feature. So unless the operator= has a practical advantage over the
> parse() member func, I'll keep parse()..
>
The operator=() is natural and doesn't require looking into docs.

I coudn't find any mention of function parse() in documentation.
Maybe the name reset() is more intuitive.

/Pavel


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