Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2007-01-29 14:20:30


On Jan 27, 2007, at 12:27 PM, Tobias Schwinger wrote:
>>>
>>>> In fact, (2) fails to compile if 'F' is a function pointer type;
>>>> because const function-pointer specialization is missing.
>>> This is a bug in boost::result_of.
>>
>> Hmm, the result_of revolution is painful...
>
> FunctionTypes provides a reimplementation of result_of (as one of its
> examples) that can handle top-level cv-qualification correctly.
>
> http://tinyurl.com/qaf5f - zip archive
>
> I replaced my local copy with it as boost::result_of was completely
> broken, recently (renaming "namespace example" to "namespace
> boost") and
> didn't experience any problems.

Good to know. Yes, boost::result_of is a mess. It was half-baked when
I originally implemented it, and I haven't had a chance to go back
and fix it.

> We can eventually replace boost::result_of with it, once FT is in and
> testing is back for the HEAD revision...

I'm looking forward to this!

        Cheers,
        Doug


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