[boost] [Assign] list_inserter.hpp missing include for boost::begin, boost::end

The BGL GraphViz test is failing on GCC 3.4.3 with this error message: In file included from /boost/head-regression/boost/boost/assign/std/map.hpp:19, from ../libs/graph/test/graphviz_test.cpp:17: /boost/head-regression/boost/boost/assign/list_inserter.hpp: In member function `boost::assign::list_inserter<Function, Argument>& boost::assign::list_inserter<Function, Argument>::range(const SinglePassRange&)': /boost/head-regression/boost/boost/assign/list_inserter.hpp:260: error: `begin' is not a member of `boost' /boost/head-regression/boost/boost/assign/list_inserter.hpp:260: error: `end' is not a member of `boost' Date: 2005-03-29 12:25 It looks like we need to include something from the range library to get these functions. Thorsten? Doug

"Douglas Gregor" <doug.gregor@gmail.com> wrote in message news:af0771acdf8325f2a6694c762ae27544@cs.indiana.edu... | The BGL GraphViz test is failing on GCC 3.4.3 with this error message: | | In file included from | /boost/head-regression/boost/boost/assign/std/map.hpp:19, | from ../libs/graph/test/graphviz_test.cpp:17: | /boost/head-regression/boost/boost/assign/list_inserter.hpp: In member | function `boost::assign::list_inserter<Function, Argument>& | boost::assign::list_inserter<Function, Argument>::range(const | SinglePassRange&)': | /boost/head-regression/boost/boost/assign/list_inserter.hpp:260: error: | `begin' is not a member of `boost' | /boost/head-regression/boost/boost/assign/list_inserter.hpp:260: error: | `end' is not a member of `boost' | Date: 2005-03-29 12:25 | | It looks like we need to include something from the range library to | get these functions. Thorsten? yes, we certainly do. I'm just wondering why the code is instantiated. I did not notice any problems in my own test. Anyway, I'll u9pdate it. Thanks. -Thorsten

On Mar 30, 2005, at 4:24 AM, Thorsten Ottosen wrote:
yes, we certainly do. I'm just wondering why the code is instantiated. I did not notice any problems in my own test.
The code probably wasn't instantiated. Still, qualified name lookup has to find something when it parses the template definition (although most compilers are not picky enough about this, so it's easy to miss).
Anyway, I'll u9pdate it.
Thanks! Doug
participants (2)
-
Douglas Gregor
-
Thorsten Ottosen