[spirit]why x3::alternative::parse not short-circuited?
27 Jan
2018
27 Jan
'18
6:44 p.m.
https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/x3... shows both left.parse *and* right.parse are called. Shouldn't right.parse be skipped if left.parse succeeds?
27 Jan
27 Jan
7:07 p.m.
New subject: OOPS (was Re: [spirit]why x3::alternative::parse not short-circuited?
On 01/27/2018 12:44 PM, Larry Evans via Boost wrote:
https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/x3...
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 ;(
2496
Age (days ago)
2496
Last active (days ago)
1 comments
1 participants
participants (1)
-
Larry Evans