[mpl::map] Still problems with map
Ji Dave, Hi Alexey,
It seems that at least macro definition for the map of 150 tuples worked. Now I face a new
problem. To reduce compilation times we decided to use map10, map20 etc. Unfortunately as we found
out this will not compile if I pass to map10 only 7 arguments. With unnumbered map these elements
were default initialized with "na" type. Why isn't this the case with numbered maps? I get the
following g++ errors:
/path/fname.hpp:5945: error: wrong number of template arguments (4, should be 10)
/user/some_uname/projects/libs/boost/include/boost/mpl/map/aux_/preprocessed/typeof_based/map10.hpp:141:
error: provided for `template
"Ovanes Markarian"
It seems that at least macro definition for the map of 150 tuples worked. Now I face a new problem. To reduce compilation times we decided to use map10, map20 etc. Unfortunately as we found out this will not compile if I pass to map10 only 7 arguments. With unnumbered map these elements were default initialized with "na" type. Why isn't this the case with numbered maps?
Because they weren't designed that way. If you want to pass 7 arguments, use map7<...> -- Dave Abrahams Boost Consulting www.boost-consulting.com
It seems that at least macro definition for the map of 150 tuples worked. Now I face a new problem. To reduce compilation times we decided to use map10, map20 etc. Unfortunately as we found out this will not compile if I pass to map10 only 7 arguments. With unnumbered map these elements were default initialized with "na" type. Why isn't this
;)
That was easy. But if I use the preprocessor statement to generate map150,
which is derived from map50, then I do not get map149. Is it correct? So
then I need to write for each map I am going to use a separate preprocessor
statement. Is it so, or do I oversee smth?
Thanks in advance,
Ovanes
-----Original Message-----
From: David Abrahams [mailto:dave@boost-consulting.com]
Sent: Tuesday, November 14, 2006 8:33 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [mpl::map] Still problems with map
"Ovanes Markarian"
"Ovanes Markarian"
;)
That was easy. But if I use the preprocessor statement to generate map150, which is derived from map50, then I do not get map149. Is it correct?
I don't know. I would have guessed you do. Why not try it? -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Ovanes Markarian