Boost logo

Boost :

From: Marco Costalba (mcostalba_at_[hidden])
Date: 2007-09-01 02:00:21


On 8/31/07, Janek Kozicki <janek_listy_at_[hidden]> 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


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