Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-11-19 08:36:52


From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
> Peter Dimov wrote:
> > I wrote "I don't understand how it works even _after_ (briefly)
> > looking at the code. ;-)" but then it occured to me that list(int, char,
> > long, int) is a function type.
>
> Yep.
>
> > Cool trick. Cv qualifiers will probably be a problem
>
> They are stripped on non-class rvalues, aren't they? :(. So, basically,
this
> one will work:
>
[...]
> list(int,char,long,her const)
[...]
> but this one won't:
[...]
> list(int,char,long,int const)

I'd expect both to not work.

list f(int, char, long, her const);

and

list f(int, char, long, her);

declare the same function (see 8.3.5). Other examples that won't work
correctly include:

list(char[])
list(char[3])
list(void)

and some won't work at all:

list(void, int)


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