[fusion] problem with make_map

I'm trying the make_map example from the doc, nearly verbatim :
#include

Jean-Louis Leroy schrieb:
I'm trying the make_map example from the doc, nearly verbatim :
#include
#include int main() { using namespace boost::fusion; make_map( make_pair<int>('X') , make_pair<double>("Men")); }
Both msvc9 and g++ 4.4.1 tell me that there is no make_map function that takes two parameters. g++ mentions that it sees a parameter-less make_map(). I use Boost 1.40.
What's up ?
Thanks, J-L
This function is not documented correctly.
The correct usage of fusion::make_map is
fusion::make_map

Christopher Schmidt wrote:
Jean-Louis Leroy schrieb:
I'm trying the make_map example from the doc, nearly verbatim :
#include
#include int main() { using namespace boost::fusion; make_map( make_pair<int>('X') , make_pair<double>("Men")); }
Both msvc9 and g++ 4.4.1 tell me that there is no make_map function that takes two parameters. g++ mentions that it sees a parameter-less make_map(). I use Boost 1.40.
What's up ?
Thanks, J-L
This function is not documented correctly. The correct usage of fusion::make_map is
fusion::make_map
(Value0,...ValueN-1)
Fixed. Thanks for noticing. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net http://tinyurl.com/facebook-jdg
participants (3)
-
Christopher Schmidt
-
Jean-Louis Leroy
-
Joel de Guzman