Re: Spirit X3 employee.cpp compile error

Larry Evans <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 08/12/2016 06:33 AM, Larry Evans wrote:
> On 08/10/2016 11:12 PM, Vincent Virgilio wrote:
>> Visual Studio 2015 Professional
>> Boost 1.61, Windows binary install
>> Spirit X3 example 'employee.cpp' (http://ciere.com/example/x3/employee.cpp)
>>
>> Unless I add a third template argument of 'true' to the declaration of
>> the employee rule, compilation fails with the below message. It's
>> tripping on an ambiguous overload.
>>
>> Vince
>>
> [snip]
> Hi Vince.
>
> FWIW, the code here:
>
> https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/x3/nonterminal/rule.hpp#L75
>
> does require a 3ird bool template argument.
>
[snip]

> GitHub: [email protected]:boostorg/spirit.git
>
> Use the develop branch.
> --}--cut here--
>
The 2 template arg rule code is actually in the x3-devel branch instead
of the develop branch:

https://github.com/boostorg/spirit/blob/x3-devel/include/boost/spirit/home/x3/nonterminal/rule.hpp#L80

I shouldn't have given up so easily ;(

-regards,
Larry




------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.