Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,126 of 33,346    |
|    Marc to James K. Lowden    |
|    Re: ostream_iterator for map    |
|    13 Apr 12 01:49:52    |
      From: marc.glisse@gmail.com              "James K. Lowden" wrote:              > I want to copy a std::map to std::cout. I define operator<< for the       > map's value_type. I can use that operator by defererencing a the map's       > iterator. Why can't I compile std::copy with ostream_iterator?       >       > The program that follows compiles and runs as is. Change it to #if 0       > instead, and get "no match for 'operator<<' ". g++ says there are many       > candidates, all standard, none mine.       [...]       > #include |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca