Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-03-06 19:47:20


AMDG

Jason Turner <lefticus <at> gmail.com> writes:

> <snip>
>
> I agree, in principal, and it was my original intention. However, a
> design goal was to make sure that any existing class could work with
> active_object and your above example does not allow for a specific
> constructor to be called. I guess, however, now that I think about it,
> if the user needs to call the not-default constructor he can store a
> pointer.

You can either have N template constructors or use
in_place_factory

> <snip>
> I also considered something along the lines of:
>
> ao->(&TestClass::getInt);
>
> What is your thought on that?
>

Illegal in C++.

In Christ,
Steven Watanabe


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