Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-06-18 11:18:22


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 18 June 2008 08:52 am, Chris Fairles wrote:
> On Wed, Jun 18, 2008 at 8:51 AM, Chris Fairles <chris.fairles_at_[hidden]>
wrote:
> > GCC changed the way #elif's are handled (is now more std-compliant
> > apparently) but this broke all the #elif BOOST_PP_ITERATION_DEPTH() ==
> > N lines. They need to be replaced with
> >
> > #elif defined(BOOST_PP_ITERATION_DEPTH)
> > #if BOOST_PP_ITERATION_DEPTH == N
> > ...
> > #endif

Does it work if you do

#elif defined(BOOST_PP_ITERATION_DEPTH) && BOOST_PP_ITERATION_DEPTH() == N

then you could avoid adding the extra #endif
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIWSdD5vihyNWuA4URAjY+AKCS3jeAhQkkbMb03vWLe4+ntvW1oACgw0Gi
Y0HYLTLQLAieVN+0zz8CJYQ=
=jIsQ
-----END PGP SIGNATURE-----


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