Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-11 12:35:38


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk