Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2006-11-14 14:56:55


;)

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_at_[hidden]]
Sent: Tuesday, November 14, 2006 8:33 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [mpl::map] Still problems with map

"Ovanes Markarian" <om_boost_at_[hidden]> writes:

> 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
_______________________________________________
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