Opened 8 years ago

Closed 5 years ago

#11115 closed Bugs (fixed)

Can't compile subrules with C++11

Reported by: alan.n.davies@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.57.0 Severity: Problem
Keywords: spirit subrules C++11 Cc:

Description

I am having trouble getting subrules to compile using a C++11 compiler. I have tried both Visual Studio 2013, and g++ 4.8.2 with the "-std=c++11". Boost version is 1.57.0.

I can't even get the example calc1_sr.cpp to compile. I have attached the output of the two compilers for this file.

g++ 4.8.2 without the "-std=c++11" option will compile. As will g++ 4.1.2 and Visual Studio 2008. However the sample does not run correctly as reported in https://svn.boost.org/trac/boost/ticket/5270

Attachments (2)

calc1_sr_g++482_output.txt (34.2 KB ) - added by alan.n.davies@… 8 years ago.
g++ 4.8.2 error for calc1_sr.cpp
calc1_sr_VS2013_output.txt (15.3 KB ) - added by alan.n.davies@… 8 years ago.
Visual Studio 2013 error for calc1_sr.cpp

Download all attachments as: .zip

Change History (4)

by alan.n.davies@…, 8 years ago

Attachment: calc1_sr_g++482_output.txt added

g++ 4.8.2 error for calc1_sr.cpp

by alan.n.davies@…, 8 years ago

Attachment: calc1_sr_VS2013_output.txt added

Visual Studio 2013 error for calc1_sr.cpp

comment:1 by Nikita Kniazev <nok.raven@…>, 5 years ago

comment:2 by Joel de Guzman, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.