[preprocessor][vacpp] BOOST_PP_SEQ_FOR_EACH failing

The attached sample fails in IBM VisualAge C++ V6.0 for AIX with the following message: vacpp.compile.c++ bin/vacpp/debug/seq.o "seq.cpp", line 10.14: 1540-0861 (S) Too few arguments are specified for macro "BOOST_PP_IIF_0". Empty arguments are used. "/home/tk/ext_projects/boost_life/boost/boost/preprocessor/control/iif.h pp", line 31.10: 1540-0425 (I) "BOOST_PP_IIF_0" is defined on line 31 of "seq.cpp". "seq.cpp", line 10.14: 1540-0861 (S) Too few arguments are specified for macro "BOOST_PP_IIF_0". Empty arguments are used. "/home/tk/ext_projects/boost_life/boost/boost/preprocessor/control/iif.h pp", line 31.10: 1540-0425 (I) "BOOST_PP_IIF_0" is defined on line 31 of "seq.cpp". Any PP guru knows how to fix this? For motivation, this problem is currently breaking a good portion of Boost.Test in vacpp, and transitively lots of test cases in other libraries. Thank you, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

Hello, anyone can help with the following? Thank you, JOAQUIN LOPEZ MU?Z ha escrito:
The attached sample fails in IBM VisualAge C++ V6.0 for AIX with the following message:
vacpp.compile.c++ bin/vacpp/debug/seq.o "seq.cpp", line 10.14: 1540-0861 (S) Too few arguments are specified for macro "BOOST_PP_IIF_0". Empty arguments are used. "/home/tk/ext_projects/boost_life/boost/boost/preprocessor/control/iif.h pp", line 31.10: 1540-0425 (I) "BOOST_PP_IIF_0" is defined on line 31 of "seq.cpp". "seq.cpp", line 10.14: 1540-0861 (S) Too few arguments are specified for macro "BOOST_PP_IIF_0". Empty arguments are used. "/home/tk/ext_projects/boost_life/boost/boost/preprocessor/control/iif.h pp", line 31.10: 1540-0425 (I) "BOOST_PP_IIF_0" is defined on line 31 of "seq.cpp".
Any PP guru knows how to fix this? For motivation, this problem is currently breaking a good portion of Boost.Test in vacpp, and transitively lots of test cases in other libraries.
Thank you,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
------------------------------------------------------------------------ Name: seq.cpp seq.cpp Type: Archivo de código fuente de C++ (application/x-unknown-content-type-cppfile) Encoding: base64
------------------------------------------------------------------------ _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Joaquín Mª López Muñoz
Subject: [boost] [repost] [preprocessor][vacpp] BOOST_PP_SEQ_FOR_EACH failing
Hello, anyone can help with the following? Thank you,
JOAQUIN LOPEZ MU?Z ha escrito:
I saw your first message, but I don't have adequate time until this weekend. I don't have access to an AIX system, so solving this problem will require your help. As an initial test, what is the result [of preprocessing]... #include <boost/preprocessor/seq/size.hpp> BOOST_PP_SEQ_SIZE( (1)(2)(3)(nil) ) // 4 BOOST_PP_SEQ_SIZE( (1)(2)(nil) ) // 3 BOOST_PP_SEQ_SIZE( (1)(nil) ) // 2 BOOST_PP_SEQ_SIZE( (nil) ) // 1 Regards, Paul Mensonides

Paul Mensonides ha escrito:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Joaquín Mª López Muñoz
Subject: [boost] [repost] [preprocessor][vacpp] BOOST_PP_SEQ_FOR_EACH failing
Hello, anyone can help with the following? Thank you,
JOAQUIN LOPEZ MU?Z ha escrito:
I saw your first message, but I don't have adequate time until this weekend. I don't have access to an AIX system, so solving this problem will require your help. As an initial test, what is the result [of preprocessing]...
#include <boost/preprocessor/seq/size.hpp>
BOOST_PP_SEQ_SIZE( (1)(2)(3)(nil) ) // 4 BOOST_PP_SEQ_SIZE( (1)(2)(nil) ) // 3 BOOST_PP_SEQ_SIZE( (1)(nil) ) // 2 BOOST_PP_SEQ_SIZE( (nil) ) // 1
I don't have access to an AIX box either. Toon Knapen is the man, he'll be probably reading this. On a related issue, why is seq.cpp missing from the Boost.PP jamfile? Seems like an oversight to me. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Joaquín Mª López Muñoz
On a related issue, why is seq.cpp missing from the Boost.PP jamfile? Seems like an oversight to me.
I don't know; I didn't write it (the jamfile). Regards, Paul Mensonides

Paul Mensonides wrote:
I saw your first message, but I don't have adequate time until this weekend. I don't have access to an AIX system, so solving this problem will require your help. As an initial test, what is the result [of preprocessing]...
#include <boost/preprocessor/seq/size.hpp>
BOOST_PP_SEQ_SIZE( (1)(2)(3)(nil) ) // 4 BOOST_PP_SEQ_SIZE( (1)(2)(nil) ) // 3 BOOST_PP_SEQ_SIZE( (1)(nil) ) // 2 BOOST_PP_SEQ_SIZE( (nil) ) // 1
The result of preprocessing this is <result> #line 3 "seq.cpp" 4 3 2 1 </result> So so far the PP lib on vacpp seems to work.

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Toon Knapen
#include <boost/preprocessor/seq/size.hpp>
BOOST_PP_SEQ_SIZE( (1)(2)(3)(nil) ) // 4 BOOST_PP_SEQ_SIZE( (1)(2)(nil) ) // 3 BOOST_PP_SEQ_SIZE( (1)(nil) ) // 2 BOOST_PP_SEQ_SIZE( (nil) ) // 1
The result of preprocessing this is
<result> #line 3 "seq.cpp" 4 3 2 1 </result>
So so far the PP lib on vacpp seems to work.
I'll have to get back to this later--no time today. Regards, Paul Mensonides
participants (4)
-
JOAQUIN LOPEZ MU?Z
-
Joaquín Mª López Muñoz
-
Paul Mensonides
-
Toon Knapen