Boost logo

Boost :

From: Daniel James (daniel_at_[hidden])
Date: 2004-08-18 06:02:04


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. 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.

An alternative would be:

     boost::resolve<>::cast(&C::g);
     boost::resolve<int>::cast(&C::g);

But maybe that's a bit too jumbled up.

Daniel


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