This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

#ifdef __STL_USE_NAMESPACES (stl_iterator.h, line #88)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]