Boost logo

Boost :

Subject: [boost] [MPL] map size must not be > 19, sunCC vs. gcc
From: Bartosz Marcinkiewicz (bma_at_[hidden])
Date: 2011-06-09 06:59:18


Hello,

This is on Solaris 11 Express (gcc version 4.3.3, Sun C++ 5.11
SunOS_i386 2010/08/13).

When boost::mpl::map<> has more than 19 entries Sun CC does not
compile my code. G++ compiles it, even when there are more than
19 entries.

[bma_at_sol11e ~/c++]$ CC -I ~/opt/include -o m3 mpl_map3.cpp && ./m3
"mpl_map3.cpp", line 80: Error: value is not a member of
boost::mpl::next<int>.
1 Error(s) detected.

[bma_at_sol11e ~/c++]$ g++ -I ~/opt/include -o m3 mpl_map3.cpp && ./m3
-> 1
-> 2
MPL map size: 20

Both compilers can handle boost::mpl::map with 19 entries.

[bma_at_sol11e ~/c++]$ g++ -I ~/opt/include -o m3 mpl_map3.cpp && ./m3
-> 1
-> 2
MPL map size: 19
[bma_at_sol11e ~/c++]$ CC -I ~/opt/include -o m3 mpl_map3.cpp && ./m3
-> 1
-> 2
MPL map size: 19

I am attaching code. Is it compiler error in Sun Studio or error
in code attached?

Thank you for any help.

Best regards, bm.

-- 
Bartosz Marcinkiewicz
tel. (+48) 516 034 243
e-mail: bma_at_[hidden]
EPCON Sp. z o.o. www.epcon.pl
adres:  53-407 Wroclaw, ul. Gajowicka 114/116
tel. (+48) 71 361 75 55 ext. 36
fax (+48) 71 361 74 44



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk