Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2004-09-16 15:33:19


How do I manage to step in all these compiler bugs??;))

I am quite sure I do not have nor function nor class template named next.
How does it happened?

Gennadiy

> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Pavel Vozenilek
> Sent: Thursday, September 16, 2004 2:42 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: problem with intersection test_tools and
> mpl/list.hpp andborland
>
>
>
> "Robert Ramey" wrote:
>
> > The following program:
> >
> >
> > #include <boost/mpl/list.hpp>
> > #include <boost/test/test_tools.hpp>
> >
> > fails to compile with borland compilers with the messages:
> >
> > c:\BoostMainCVS\libs\serialization\test\test_zmisc.cpp:
> > Error E2479 C:\BoostMainCVS\boost/next_prior.hpp 30: Cannot
> have both
> > a template class and function named 'next'
> >
> >
> Old BCB bug, e.g.
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&th
readm=3BDD798D.130E38F8%40divalsim.it&rnum=1&prev=/groups%3Fnum%3D100%26hl%3
Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26q%3DE2479%2BBorland%2BOR%2BBCB%2BOR%
2Bcompiler%26btnG%3DSearch
(http://tinyurl.com/5ltk9)

It won't be fixed, ever.

One ugly way is to use macro:

#include <boost/mpl/list.hpp>
#define next xyz
#include <boost/test/test_tools.hpp>
#undef next

other is to separate code into two TUs.

/Pavel

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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