Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-05-22 12:16:36

Jaakko Jarvi wrote:
> I can't now even get the deque error you mention, can you send me
> the error listing (maybe outside of boost list). Maybe there is a better
> way to fix it instead of including deque.

The error was exactly what I quoted in the first posting of this thread.
  The gcc uses a non-conformant deque which has a third parameter, thus
the forward declaration doesn't work.

Here's the patch for boost/lambda/detail/operator_return_type_traits.hpp:

> // The GCC 2.95.x uses a non-conformant deque
> #if BOOST_WORKAROUND(__GNUC__, == 2) && __GNUC_MINOR__ <= 96
> # include <deque>
> #else
> namespace std {
> template <class T, class Allocator> class deque;
> }
> #endif
< template <class T, class Allocator> class deque;

Please note that I'm not sure about the status of gcc 2.95.3 or other
sub-versions, so please someone with more experience have a look at
this, I'm sure it can be improved :)

Regards, Daniel

Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web:

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