I have to create a class factory and was looking for a generic class factory that I could work with. I looked in the boost documentation but didn't find anything. Is there something there that I am missing or do I need to roll my own? Mark Loew, MCSD, MCSE Application Development Consultant Sagestone Consulting www.sagestone.com http://www.sagestone.com/ Grand Rapids, MI 616-954-9556 x149 Microsoft Gold Certified Partner mloew@sagestone.com
Mark Loew wrote:
I have to create a class factory and was looking for a generic class factory that I could work with. I looked in the boost documentation but didn't find anything. Is there something there that I am missing or do I need to roll my own?
Depending on your needs, map< string, function< shared_ptr<Base>() > > may suffice.
participants (2)
-
Mark Loew
-
Peter Dimov