$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Klein (d.klein_at_[hidden])
Date: 2006-03-29 06:02:02
boost-users-bounces_at_[hidden] wrote:
> Is there any way that, using Boost, you can dynamically create
> classes by name, similar to the MFC RUNTIME_CLASS macros? I was
> hoping that the boost::serialize libs might be able to help with this.
>
> For example, I want to be able to do something like:
>
> CMyClass* pClass = CREATE_CLASS_BY_NAME("CMyClass");
>
> Can Boost help me to achieve this?
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://listarchives.boost.org/mailman/listinfo.cgi/boost-users
hi rob,
i guess you're looking for some kind of reflection library.
there is none so far in boost, but there were some proposals in the
past.
see: http://listarchives.boost.org/Archives/boost/2006/01/99686.php
HTH dave