[C++-sig] new stl_iterator doesn't work with EDGs

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Wed Nov 2 23:21:07 CET 2005


--- Eric Niebler <eric at boost-consulting.com> wrote:
> Odd. EDG doesn't seem to be picking up the friend declaration. The 
> attached version works around the problem. Can you give it a shot?
> ...
> #if !BOOST_WORKAROUND(__EDG_VERSION__, BOOST_TESTED_AT(304))
> private:
>     friend class iterator_core_access;
> #endif

Your patch works (tested with EDG 304) but this one works (tested with EDG 238
and 304), too:

Index: stl_iterator.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/python/stl_iterator.hpp,v
retrieving revision 1.1
diff -r1.1 stl_iterator.hpp
39c39
<     friend class iterator_core_access;
---
>     friend class boost::iterator_core_access;


With the original version of stl_iterator.hpp EDG seems to "think" the friend
is boost::python::iterator_core_access (which doesn't exist). Is this a bug in
the EDG name lookup? Or is it a non-standard feature that it works with g++?

Let me know which patch you prefer and I'll test it on more platforms.

Cheers,
        Ralf



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com



More information about the Cplusplus-sig mailing list