Re: [boost] Re: [lambda] gcc 2.95.2?

2003-05-22 Thread Jaakko Jarvi
Hi,

The problems with 2.95 were in bind overloads and deducing function
references, if I remember correctly. However, the bind
overloading was changed at some point for other reasons, and that can have
fixed the trouble.

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.

  Cheers, Jaakko


On Thu, 22 May 2003, Daniel Frey wrote:

 I should also mention that I have a patch which solves the problem by
 replacing the forward declaration of deque with a real include in
 boost/lambda/detail/operator_return_type_traits.hpp. Really
 strait-forward. But am interested in the general support of lambda for
 this compiler, as the problem I had will most likely occur for anyone
 using the gcc 2.95.2 immediately and I haven't found any other problem
 after the patch...

 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: [EMAIL PROTECTED], web: http://www.aixigo.de


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

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


Re: [boost] Re: [lambda] gcc 2.95.2?

2003-05-22 Thread Jaakko Jarvi
I applied the patch. So for gcc  2.96, lambda now includes deque, and
works as a compensation for this extra dependency.

  Jaakko

On Thu, 22 May 2003, Daniel Frey wrote:

 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:

 26a27,37
   // 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
  
 869d879
   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: [EMAIL PROTECTED], web: http://www.aixigo.de


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

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