Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-17 18:11:26


on Thu Jul 17 2008, "John C. Femiani" <john.femiani-AT-gmail.com> wrote:

> Michiel Helvensteijn wrote:
>> John C. Femiani wrote:
>>
>>
>>>>> or to specialize boost::test_tools::tt_detail::print_log_value.
>>>>>
>>>> This I didn't try. It seemed a bit more hack-ish and a bit more work.
>>>>
>>> Well both legal solutions involve using something from a 'detail'
>>> namespace, which scares me.
>>>
>>
>> Hm, yes. You're afraid they will change the structure of that namespace from
>> under our feet without even putting it in a changelog.
>>
>> Given that possibility, might it not be better to put it in namespace std
>> anyway...
>>
>> Perhaps 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.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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