Boost logo

Boost Users :

Subject: Re: [Boost-users] example of factory where derived class constructors have different signatures
From: peter_foelsche_at_[hidden]
Date: 2009-01-08 18:42:33


struct IFactory
{ virtual boost:: intrusive_ptr<IClass> createIClass(
             const std::vector<boost::any> &) const = 0;
};

or even arguments by name:

struct IFactory
{ virtual boost:: intrusive_ptr<IClass> createIClass(
             const std::map<std::string, boost::any> &) const = 0;
};

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Victor Whiskey Yankee
Sent: Thursday, January 08, 2009 15:25
To: boost-users_at_[hidden]
Subject: [Boost-users] example of factory where derived class constructors have different signatures

Hi,

How factory can be used when derived classes need constructing with
different args?

Could someone show an sample?

Thank you,
Vic

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net