Subject: Re: [boost] [explore] Library Proposal: Container Streaming
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2009-11-30 17:37:00


Jeffrey Faust wrote:
> Jeffrey Bosboom wrote:
>> As a technical question, how are the operators found? They can't be
>> added to std (adding to std is undefined behavior), and there's
>> otherwise no one namespace to put them in that will allow them to be
>> found for all element types (at least with my understanding of ADL).
>
> The operators are added to namespace std, and they are found through
> ADL. I don't know how to make this work otherwise.

You could put them in the global namespace? I think that would conform
better to the letter of the rules, without really being any safer in
practice.

John Bytheway