[MPL] map size must not be > 19, sunCC vs. gcc

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@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@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@sol11e ~/c++]$ g++ -I ~/opt/include -o m3 mpl_map3.cpp && ./m3 -> 1 -> 2 MPL map size: 19 [bma@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@epcon.pl 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

On Thu, Jun 09, 2011 at 12:59:18PM +0200, Bartosz Marcinkiewicz wrote:
Hello,
This is on Solaris 11 Express (gcc version 4.3.3, Sun C++ 5.11 SunOS_i386 2010/08/13).
[...] I am sorry - I forgot to mention this in previous mail: boost version is 1.46.1. -- Bartosz Marcinkiewicz tel. (+48) 516 034 243 e-mail: bma@epcon.pl 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
participants (1)
-
Bartosz Marcinkiewicz