Boost logo

Boost :

Subject: [boost] OOPS (was Re: [spirit]why x3::alternative::parse not short-circuited?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2018-01-27 19:07:18


On 01/27/2018 12:44 PM, Larry Evans via Boost wrote:
> https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/x3/operator/alternative.hpp#L29
>
>
> shows both left.parse *and* right.parse are called.
> Shouldn't right.parse be skipped if left.parse succeeds?
>
OOPS. Never mind. The c++ compiler does the short circuiting with the
||operator ;(


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