Is there a helper function for boost::fusion::vector just as std::make_pair to std::pair?

Hi, Is there a helper function for boost::fusion::vector just as std::make_pair to std::pair? boost::fusion::vector<very_loooooooooooooooooong_type,...,very_loooooooooooooooooong_type> v(...,,...); Suppose I have the above case, where the declaration is very long, I would like a helper function to simplify the above definition. Thanks, Peng

Peng Yu wrote:
Hi,
Is there a helper function for boost::fusion::vector just as std::make_pair to std::pair?
boost::fusion::vector<very_loooooooooooooooooong_type,...,very_loooooooooooooooooong_type> v(...,,...);
Suppose I have the above case, where the declaration is very long, I would like a helper function to simplify the above definition.
make_vector Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Peng Yu Sent: Friday, July 11, 2008 3:32 PM To: boost@lists.boost.org Subject: [boost] Is there a helper function for boost::fusion::vector justas std::make_pair to std::pair?
Hi,
Is there a helper function for boost::fusion::vector just as std::make_pair to std::pair?
boost::fusion::vector<very_loooooooooooooooooong_type,...,very _loooooooooooooooooong_type> v(...,,...);
Suppose I have the above case, where the declaration is very long, I would like a helper function to simplify the above definition.
I use make_vector. Look at #include <boost/fusion/include/make_vector.hpp> --John
participants (3)
-
Joel de Guzman
-
John Femiani
-
Peng Yu