Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-07-09 02:41:40

Rob Stewart wrote:

> > Unfortunately, the discussion does not flow the way I had hoped :o). My
> > intent is to figure out the opinion of the boost community about the
> > advice against overloading the comma, and, and or operators, given by
> > people like Scott Meyers and others. Is that a good coding standard or
> > not?
> It's certainly not to be done without understanding the
> ramifications. Clearly, the average user doesn't know anything
> about sequence points and those of us aware of them don't always
> remember all of the rules. Thus, it can be dangerous to overload
> operator, and thus a coding guideline that warns against it is
> warranted.

But the same user will be equally unprepared to unspecified evaluation order

   A = get(), get(), get();

and in

   A.assign_list(get())(get())(get()) ;

There's nothing specific about operator,();

- Volodya

Boost list run by bdawes at, gregod at, cpdaniel at, john at