|
Boost Users : |
From: peter_foelsche_at_[hidden]
Date: 2008-07-11 17:15:27
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_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Simon Pickles
Sent: Friday, July 11, 2008 13:45
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Passing dynamic arguments with boost?
peter_foelsche_at_[hidden] 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_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