Anonymous - 2007-11-05

Logged In: YES
user_id=1882902
Originator: NO

In my use case, the return type would be a boost::variant (a discriminated union container). I also think that the concept of AbstractProduct and the factory return type should be generalized some way. Actually couldn't they be the same ? Is it to much to ask the user to write Factory<AbstractProduct*, ...> if he want to use the way it works nowdays ?
I would be OK with the proposed return traits and it is probably a better solution for backward compatibility since this new template parameter could have a default value.
Regards, Samuel