Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-10-03 22:48:52


Emil Dotchevski <emil <at> revergestudios.com> writes:

>
> > Why not use approach similar (if not based upon) named function parameters:
> >
> > throw my_error().data(( tag_errno = errno, tag_name = name, .... ))
>
> That's not bad at all, and seems totally possible. Thanks for the suggestion.
>
> > I also strongly in favor boost::optional instead of pointer result type.
>
> What is the problem with the pointer?

It's pointer ;)

Optional more clearly indicate your intention and safer.

Gennadiy


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