Re: Spirit X3 employee.cpp compile error

Vincent Virgilio <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Thank you for the response. I should've looked more closely.





I did move onto another small Spirit project, with some partial success. Here it is at coliru:





http://coliru.stacked-crooked.com/a/204a6ec86e2903b9




I think the compilation fails when it reaches phrase_parse. Container_traits tries to query a std::pair<> in my rules for 'value_type'. There's a specialization for pair<> in container_traits (just above line 77) that seems to be missed.





/usr/local/include/boost/spirit/home/x3/support/traits/container_traits.hpp:69:12: error: no type named 'value_type' in 'struct std::pair<int, std::vector<std::__cxx11::basic_string<char> > >'




I'm very new to Spirit, so likely it's due to a simple mis-use.





Thanks again,





Vince





 


On Aug 12, 2016, at 12:10 AM, Joel de Guzman <[email protected]> wrote:






On 11/08/2016 12: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.

X3 does not (officially) support VS.

regards,
-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/

------------------------------------------------------------------------------
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
_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general

------------------------------------------------------------------------------
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

_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general
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.