
7 Mar
2007
7 Mar
'07
12:47 a.m.
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