Opened 15 years ago

Closed 13 years ago

#1651 closed Bugs (fixed)

incorrect typedefs in examples

Reported by: anonymous Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: spirit
Version: Boost 1.34.1 Severity: Cosmetic
Keywords: spirit typedef Cc:

Description

http://boost.org/libs/spirit/doc/multi_pass.html

The example can't be compiled as it declares typedefs with names already declared in the library itself and point to different types:

    typedef char char_t;
    typedef multi_pass<istreambuf_iterator<char_t> > iterator_t;

    typedef skip_parser_iteration_policy<space_parser> iter_policy_t;
    typedef scanner_policies<iter_policy_t> scanner_policies_t;
    typedef scanner<iterator_t, scanner_policies_t> scanner_t;

It results in very cryptic error messages with gcc3.4.6.

I'm afraid this is the case for some other Spirit doc pages.

Thanks, Maxim

Change History (3)

comment:1 by Daniel James, 15 years ago

Component: Documentationspirit
Owner: changed from Matias Capeletto to Joel de Guzman

comment:2 by Joel de Guzman, 13 years ago

Owner: changed from Joel de Guzman to Hartmut Kaiser

comment:3 by Hartmut Kaiser, 13 years ago

Resolution: fixed
Status: newclosed

(In [56351]) Spirit: fixed #1651

Note: See TracTickets for help on using tickets.