Boost logo

Boost :

Subject: Re: [boost] Interest in an 'either' library?
From: David Sankel (camior_at_[hidden])
Date: 2013-06-26 14:40:34


On Wed, Jun 26, 2013 at 11:47 AM, Gottlob Frege <gottlobfrege_at_[hidden]>wrote:

> On Wed, Jun 26, 2013 at 12:21 PM, David Sankel <camior_at_[hidden]> wrote:
>
> >
> > Let me give that do notation I mentioned in the earlier email a better
> > definition:
> >
> > do( stmt1, stmt2, stmt3 ).
> >
> >
>
>
> I don't think C++ guarantees the order of those statements. Is that a
> problem?
>

No. The actual evaluation of those expressions (which can be though of as
'lazy'), if they are evaluated a all, will occur in the body of the do
function in the correct order. C++ expressions, of course, will be
evaluated before the do function is entered, but this shouldn't cause any
issues.

David


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