This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
#ifdef __STL_USE_NAMESPACES (stl_iterator.h, line #88)
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: #ifdef __STL_USE_NAMESPACES (stl_iterator.h, line #88)
- From: Thomas Maeder <maeder at glue dot ch>
- Date: Wed, 04 Aug 1999 21:17:56 +0200
Hi
I have just installed gcc 2.95 for Cygwin (Windows NT 4 German, SP4); I
chose the option of replacing the system compiler.
In stl_iterator.h, struct std::iterator is (still) guarded by
__STL_USE_NAMESPACES, causing the struct template not to be included. If
I comment out the #ifdef/#endif pair, I can happily(?) use the template.
Should __STL_USE_NAMESPACES be #defined? Where?
Thanks
Thomas
PS: In the meantime, I have found a problem (and a work-around):
template <class value_type>
class BRep
{
// ...
};
template <class T>
class B
: public std::iterator<std::bidirectional_iterator_tag,T>
{
public:
typedef BRep<value_type> Representation;
};
Gives an internal compiler error; the work-around is to use T instead of
value_type.