Boost logo

Boost Users :

From: John C. Femiani (john.femiani_at_[hidden])
Date: 2008-07-17 19:31:56


David Abrahams wrote:
> on Thu Jul 17 2008, "John C. Femiani" <john.femiani-AT-gmail.com> wrote:
>
>> Michiel Helvensteijn wrote:
>>
>>> rhaps they should offer us a real solution in the next version?
>>>
>>>
>>>
>> Perhaps an overloadable ::boost::repr(T) function that translates T
>> into a proxy type that can have operator<< overloaded properly.
>>
>
> Except that overloading in namespace boost won't work as you'd like in
> many contexts. You'd need to overload in an associated namespace of T
> and call repr without qualification.
>
What aspect wouldn't work as I expected? Do you mean that overloads of
repr that aren't in namespace boost could occlude ::boost::repr? In that
case its a lot like ::boost::begin I think. The point of repr was to
avoid putting an overload operator<< into namespace std.

--John


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net