This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

PR 4051


Hi,

I'm looking at:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4051&database=gcc

Does anyone know why gcc 3.x complains about this?
--
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          



#include <vector>
#include <iostream>
#include <iterator>

using namespace std;

ostream & operator << (ostream & out, const pair < int, int >&p)
{
  out << p.first << " " << p.second;
  return out;
}

int
main ()
{
  vector < pair < int, int > >vpi;

  copy (vpi.begin (), vpi.end (),
	ostream_iterator < pair < int, int > >(cout, "\n"));

  return 0;
}


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