Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-22 10:46:26


Daniel James <daniel_at_[hidden]> writes:

> David Abrahams wrote:
>> Doesn't Walter update DMC++ quite often? Would it be better to just
>> report bugs to him and wait for the fixes? I have no major objection
>> to the patches; I'm just slightly concerned about crufting up the
>> codebase to add support for a previously unsupported compiler if it
>> will happen without changes in a few weeks anyway.
>
> I've made a few bug reports concerning type traits - although mainly
> concerning the bugs that I haven't worked around. You can see them
> here:
>
> http://www.digitalmars.com/drn-bin/wwwnews?c%2B%2B/4156
>
> I'm a little hesitant when it comes to overload resolution because I
> don't fully understand the rules, especially the subtleties required
> for the type traits library. Having said that, the main problem is the
> way it overloads variable argument lists, and I can probably get my
> head around that. Would anyone be willing to help me out by writing an
> explanation of what's required? I can put together examples showing
> exactly what fails.

It's pretty simple. a (...) parameter is always a worse match than
anything else that matches, including template parameter types.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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