X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Alex Vinokur" Newsgroups: comp.os.msdos.djgpp,gnu.g++.help Subject: Re: gpp 3.0.4 & stl_iterator.h Date: Mon, 22 Apr 2002 12:09:21 +0200 Organization: Scopus Lines: 250 Message-ID: References: NNTP-Posting-Host: gateway.scopus.net (62.90.123.5) X-Trace: fu-berlin.de 1019466476 7107837 62.90.123.5 (16 [79865]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Alex Vinokur" wrote in message news:a9ucus$62ivj$1 AT ID-79865 DOT news DOT dfncis DOT de... | ========================================================= | GNU CPP version 3.0.4 (cpplib) (80386, BSD syntax) | GNU C++ version 3.0.4 (djgpp) compiled by GNU C version 3.0.4. | Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls | Thread model: single | | Windows-2000 | ========================================================= | | | Here is compilation results. | | What may be wrong? | [snip] ###### C++ code : Source file : BEGIN ###### // File x1.cpp #include #include #include using namespace std; #define CODE unsigned int // ------------------------------ // ------------------------------ template void func1 (const vector& vector_i, const string& delimiter_i = " ") { strstream tmp_strstream; ostream_iterator out (tmp_strstream, delimiter_i.c_str ()); copy (vector_i.begin (), vector_i.end (), out); } // ------------------------------ // ------------------------------ template class AAA { public : AAA () {} ~AAA () {} void doit () const; }; // ------------------------------ template void AAA::doit () const { vector > v1; func1(v1); } // ------------------------------ // ------------------------------ int main () { AAA aaa_01; aaa_01.doit (); return 0; } ###### C++ code : Source file : END ######## ###### Compilation : BEGIN ###### %gpp -W -Wall x1.cpp c:/djgpp/lang/cxx-v3/bits/stl_iterator.h: In member function `std::ostream_iterator<_Tp, char, std::char_traits >& std::ostream_iterator<_Tp, _CharT, _Traits>::operator=(const _Tp&) [with _Tp = std::vector >, _CharT = char, _Traits = std::char_traits]': c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:182: instantiated from `_OutputIter std::__copy(_RandomAccessIter, _RandomAccessIter, _OutputIter, std::random_access_iterator_tag, _Distance*) [with _RandomAccessIter = const std::vector >*, _OutputIter = std::ostream_iterator >, char, std::char_traits >, _Distance = ptrdiff_t]' c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:202: instantiated from `_OutputIter std::__copy_aux2(_InputIter, _InputIter, _OutputIter, _Bool) [with _InputIter = const std::vector >*, _OutputIter = std::ostream_iterator >, char, std::char_traits >]' c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:237: instantiated from `_OutputIter std::__copy_aux(_InputIter, _InputIter, _OutputIter, _Tp*) [with _InputIter = const std::vector >*, _OutputIter = std::ostream_iterator >, char, std::char_traits >, _Tp = std::vector >]' c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:252: instantiated from `_OutputIter std::__copy_ni2(_InputIter, _InputIter, _OutputIter, _Bool) [with _InputIter = const std::vector >*, _OutputIter = std::ostream_iterator >, char, std::char_traits >]' c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:260: instantiated from `_OutputIter std::__copy_ni1(_InputIter, _InputIter, _OutputIter, _Bool) [with _InputIter = std::__normal_iterator >*, std::vector >, std::allocator > > > >, _OutputIter = std::ostream_iterator >, char, std::char_traits >]' c:/djgpp/lang/cxx-v3/bits/stlalgobase.h:281: instantiated from `_OutputIter std::copy(_InputIter, _InputIter, _OutputIter) [with _InputIter = std::__normal_iterator >*, std::vector >, std::allocator > > > >, _OutputIter = std::ostream_iterator >, char, std::char_traits >]' x1.Cpp:18: instantiated from `void func1(const std::vector >&, const std::string&) [with T1 = std::vector >]' x1.Cpp:46: instantiated from `void AAA::doit() const [with T1 = char, T2 = int, unsigned int T3 = 5]' x1.Cpp:57: instantiated from here c:/djgpp/lang/cxx-v3/bits/stl_iterator.h:426: no match for `std::basic_ostream >& << const std::vector >&' operator c:/djgpp/lang/cxx-v3/bits/ostream.tcc:50: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>&(*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:72: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ios<_CharT, _Traits>&(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:94: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base&(*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:140: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:177: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:115: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:99: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:110: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:114: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:125: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:203: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:241: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:267: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:140: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:292: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:317: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:342: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_streambuf<_CharT, _Traits>*) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:215: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:575: std::basic_ostream& std::operator<<(std::basic_ostream&, char) [with _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:226: std::basic_ostream& std::operator<<(std::basic_ostream&, signed char) [with _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:231: std::basic_ostream& std::operator<<(std::basic_ostream&, unsigned char) [with _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:643: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*) [with _CharT = char, _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/ostream.tcc:689: std::basic_ostream& std::operator<<(std::basic_ostream&, const char*) [with _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:250: std::basic_ostream& std::operator<<(std::basic_ostream&, const signed char*) [with _Traits = std::char_traits] c:/djgpp/lang/cxx-v3/bits/std_ostream.h:255: std::basic_ostream& std::operator<<(std::basic_ostream&, const unsigned char*) [with _Traits = std::char_traits] ###### Compilation : END ######## | Thanks in advance. | | -- ==================== Alex Vinokur http://up.to/alexvn http://go.to/alexv_math mailto:alexvn AT bigfoot DOT com mailto:alexvn AT go DOT to ====================