
On 8/31/07, Janek Kozicki <janek_listy@wp.pl> wrote:
Marco Costalba said: (by the date of Fri, 31 Aug 2007 20:07:37 +0200)
This is a simple yet interesting object factory.
Did you have a look at GSoC extension library? (to be submitted for review)
No, now I check.... ....Ok. I've had a look. Well i won't say "simple", I can get an up to 6 parameter factory with much less KB and copy & paste. Also I've seen factory uses typeid, mine does not uess RTTI. I didn't run the factory, and the tutorial was not enough to say if the factory checks for parameter overloading and checks for ambiguous contructor calls, as example MyClass(int v); MyClass(int& v); MyClass(const int& v); can all be called by new MyClass(7); But compiler errors out (where ctor is called _not_ where ctors are defined!) for ambiguous call. Factory should check against registering this kind of c'tor parameters. Now, very sorry, but I really have to ask you: "Did you have a look at mine?" Thanks Marco