From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> > 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) _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost