[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)



Sorry to follow myself up so quickly, but I found the fault.

The ropeimpl.h file is in error complared to the version from SGI's STL.

Here's the diff:

--- ropeimpl.h.orig     Mon Oct 12 14:18:53 1998
+++ ropeimpl.h  Mon Oct 12 14:17:25 1998
@@ -1082,7 +1082,7 @@
 /* 35 */24157817, /* 36 */39088169, /* 37 */63245986, /* 38 */102334155,
 /* 39 */165580141, /* 40 */267914296, /* 41 */433494437,
 /* 42 */701408733, /* 43 */1134903170, /* 44 */1836311903,
-/* 45 */2971215073 };
+/* 45 */2971215073u };
 // These are Fibonacci numbers < 2**32.
 
 template <class charT, class Alloc>



I'll post a bug against libc++2.9-dev


chris








On Mon, Oct 12, 1998 at 02:14:30PM +1000, Chris wrote:
> Interesting....I cant seem to use ropes with libc++2.9-dev
> 
> I tried this:
> 
> #include <rope.h>    // Also tried #include <rope>
> 
> void main(void)
> {
> 	rope<char> r;
> }
> 
> But I get these errors:
> 
> In file included from /usr/include/g++-2/stl_rope.h:2107,
>                  from /usr/include/g++-2/rope.h:18,
>                  from blah.cc:1:
> /usr/include/g++-2/ropeimpl.h:1085: warning: decimal integer constant is so
> large that it is unsigned
> 
> 
> The relevant section in ropeimpl.h contains numbers from the fibonacci
> sequence up to 2^32    (Anyone know why these are relevant to ropes?????)
> 
> 
> Anyone else have this problem?  Know a solution?
> 
> 
> Thanks,
> 
> 
> Chris
> 
> 
> 
> -- 
> 
> ----------------------------------------------------------------------
> REALITY.SYS corrupted: Reboot universe? (Y/N/Q)   ....Debian GNU/Linux
> ----------------------------------------------------------------------
> Reply with subject 'request key' for PGP public key.  KeyID 0xA9E087D5



-- 

----------------------------------------------------------------------
REALITY.SYS corrupted: Reboot universe? (Y/N/Q)   ....Debian GNU/Linux
----------------------------------------------------------------------
Reply with subject 'request key' for PGP public key.  KeyID 0xA9E087D5

Attachment: pgpGNWIArxEfj.pgp
Description: PGP signature


Reply to: