Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - (SGI) STL set: typename can only be used in templates
Here is a simple test program (using the DM bundled SGI STL): #include <set.h> int main(int argc, char *argv[]) { set<int> s; s.erase(s.begin(), s.end()); return 0; } // c:\dm\stl\stl_set.h(177) : Error: typename can only be used in templates Just in case, here is the piece of code causing the problem in stl_set.h: void erase(iterator __first, iterator __last) { typedef typename _Rep_type::iterator _Rep_iterator; bye, Christof -- http://cmeerw.cjb.net Jabber: cmeerw jabber.at mailto cmeerw at web.de ICQ: 93773535, Yahoo!: cmeerw ...and what have you contributed to the Net? Oct 23 2001
There is a group news://news.digitalmars.com/c++.stl.sgi for SGI STL... Jan Christof Meerwald wrote:Here is a simple test program (using the DM bundled SGI STL): #include <set.h> int main(int argc, char *argv[]) { set<int> s; s.erase(s.begin(), s.end()); return 0; } // c:\dm\stl\stl_set.h(177) : Error: typename can only be used in templates Just in case, here is the piece of code causing the problem in stl_set.h: void erase(iterator __first, iterator __last) { typedef typename _Rep_type::iterator _Rep_iterator; bye, Christof -- http://cmeerw.cjb.net Jabber: cmeerw jabber.at mailto cmeerw at web.de ICQ: 93773535, Yahoo!: cmeerw ...and what have you contributed to the Net? Oct 23 2001
On Tue, 23 Oct 2001 18:53:17 -0400, Jan Knepper wrote:There is a group news://news.digitalmars.com/c++.stl.sgi for SGI STL... Oct 23 2001
Christof Meerwald wrote:Yes, but as I think it is a compiler bug (and not a problem with the SGI STL implementation), I have chosen to post it here. Oct 23 2001
Jan Knepper schrieb...I guess a good thing might be to create c++.bugs Will think about that one. Oct 24 2001
|