Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-09-16 13:42:00

"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.

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at