
if the number of types to be passed is known at compile time, using boost::variant<type1, type2, ...> instead of boost::any results in faster code. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Simon Pickles Sent: Friday, July 11, 2008 13:45 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Passing dynamic arguments with boost? peter_foelsche@agilent.com wrote:
for variable number of arguments:
void myFunction(std::vector<boost::any> &);
or for arguments by name:
void myFunction(std::map<std::string, boost::any> &);
Thanks, this is really interesting.... _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users