Ticket #7732: adl-issues.patch

File adl-issues.patch, 2.4 KB (added by felipe.m.almeida@…, 10 years ago)

Patch for correction of ADL issues with the compile function called in generante and parse functions

  • boost/spirit/home/karma/generate.hpp

     
    6666        BOOST_SPIRIT_ASSERT_MATCH(karma::domain, Expr);
    6767
    6868        typename detail::make_context<Attr>::type context(attr);
    69         return compile<karma::domain>(expr).generate(sink, context, unused, attr);
     69        return spirit::compile<karma::domain>(expr).generate(sink, context, unused, attr);
    7070    }
    7171
    7272    template <typename OutputIterator, typename Expr, typename Attr>
     
    148148        BOOST_SPIRIT_ASSERT_MATCH(karma::domain, Delimiter);
    149149
    150150        typename result_of::compile<karma::domain, Delimiter>::type const
    151             delimiter_ = compile<karma::domain>(delimiter);
     151            delimiter_ = spirit::compile<karma::domain>(delimiter);
    152152
    153153        if (pre_delimit == delimit_flag::predelimit &&
    154154            !karma::delimit_out(sink, delimiter_))
     
    157157        }
    158158
    159159        typename detail::make_context<Attribute>::type context(attr);
    160         return compile<karma::domain>(expr).
     160        return spirit::compile<karma::domain>(expr).
    161161            generate(sink, context, delimiter_, attr);
    162162    }
    163163
  • boost/spirit/home/qi/parse.hpp

     
    8383        BOOST_SPIRIT_ASSERT_MATCH(qi::domain, Expr);
    8484
    8585        typename detail::make_context<Attr>::type context(attr);
    86         return compile<qi::domain>(expr).parse(first, last, context, unused, attr);
     86        return spirit::compile<qi::domain>(expr).parse(first, last, context, unused, attr);
    8787    }
    8888
    8989    template <typename Iterator, typename Expr, typename Attr>
     
    158158        typedef
    159159            typename result_of::compile<qi::domain, Skipper>::type
    160160        skipper_type;
    161         skipper_type const skipper_ = compile<qi::domain>(skipper);
     161        skipper_type const skipper_ = spirit::compile<qi::domain>(skipper);
    162162
    163163        typename detail::make_context<Attr>::type context(attr);
    164         if (!compile<qi::domain>(expr).parse(
     164        if (!spirit::compile<qi::domain>(expr).parse(
    165165                first, last, context, skipper_, attr))
    166166            return false;
    167167