[Boost-bugs] [Boost C++ Libraries] #4235: spirit::lex::lexertl::data::lookahead: Incorrect name lookup for next()

Subject: [Boost-bugs] [Boost C++ Libraries] #4235: spirit::lex::lexertl::data::lookahead: Incorrect name lookup for next()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-18 14:45:15


#4235: spirit::lex::lexertl::data::lookahead: Incorrect name lookup for next()
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: spirit
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 Hello Spirit Team,

 In spirit/home/lex/lexer/lexertl/functor_data.hpp, the call to next()
 inside data::lookahead() does not compile on gcc 4.3.3. Since the function
 is not a template, argument-dependent lookup does not search the base
 template class, and the call apparently resolves to some other function,
 resulting in weird error messages.

 This quick fix works:
 return id == this->next(end, unique_id);

 Thanks and keep up the good work!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4235>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC