17 Jul
2008
17 Jul
'08
11:31 p.m.
David Abrahams wrote:
on Thu Jul 17 2008, "John C. Femiani"
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