Opened 11 years ago

Closed 5 years ago

#6046 closed Bugs (fixed)

Using space in karma rule causes compile error

Reported by: Sergiu Dotenco Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

Compiling the following rule using Intel Compiler 12.1.0.233

using namespace boost::spirit;
karma::rule<std::string::iterator, std::string()> r = ascii::space;

fails with the error message

boost/spirit/home/karma/char/char_class.hpp(141): error: class "boost::spirit::tag::space" has no member "space"
              return classify<char_encoding>::is(tag::space(), attr);

The attached patch fixes the problem.

Attachments (1)

char_class.hpp.patch (593 bytes ) - added by Sergiu Dotenco 11 years ago.

Download all attachments as: .zip

Change History (4)

by Sergiu Dotenco, 11 years ago

Attachment: char_class.hpp.patch added

comment:1 by Sergiu Dotenco, 11 years ago

As an additional note, the error is issued only by the windows version of Intel compiler.

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

I hope Intel have fixed the problem in their compiler, but if it is still a problem please open a PR.

comment:3 by Joel de Guzman, 5 years ago

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