|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-08-18 09:18:30
"Daniel James" <daniel_at_[hidden]> wrote in message
news:4123372C.50805_at_calamity.org.uk...
> Jonathan Turkanis wrote:
>
> > I can do it with this syntax:
> >
> > boost::resolve_cast<int()>(&C::g);
> > boost::resolve_cast<int(int)>(&C::g);
>
> The nice thing about the original syntax was that you didn't have to
> specify the return type.
Yeah, I noticed this. :-( But I'd rather specify the return type than
the arity.
> Is it be possible to change this to something
> like this?
>
> boost::resolve_cast<_()>(&C::g);
> boost::resolve_cast<_(int)>(&C::g);
>
> So that the return type is just a placeholder.
Sure. But _ would presumably go in some namespace within boost, so it
would be cumbersome to use. Maybe
boost::resolve_cast<boost::irrelevant(int)>(&C::g);
;-)
>
> An alternative would be:
>
> boost::resolve<>::cast(&C::g);
> boost::resolve<int>::cast(&C::g);
>
> But maybe that's a bit too jumbled up.
It looks a bit funny.
>
> Daniel
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk