
11 Jul
2008
11 Jul
'08
4:35 p.m.
on Fri Jul 11 2008, Steven Watanabe <watanabesj-AT-gmail.com> wrote:
AMDG
David Abrahams wrote:
on Fri Jul 11 2008, "Robert Jones" <robertgbjones-AT-gmail.com> wrote:
using namespace std;
ostream & operator << ( ostream & ostrm, pair<string, string> const & input );
Yes, something like that works.
Except that the overloads can't be found by ADL.
Good catch! Yeah, you can't legally define streaming for std::pair<> that will work in a generic context. -- Dave Abrahams BoostPro Computing http://www.boostpro.com