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

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



On Sun, Oct 11, 1998 at 01:42:20PM +0000, Rob Browning wrote:
> Chris <chris@ormond.unimelb.edu.au> writes:
> 
> > See http://www.sgi.com/Technology/STL for the current STL implementation.
> 
> And see 
> 
>   http://www.sgi.com/Technology/STL/string_discussion.html
> 
> for why you should probably be using ropes or vector<char> instead.
> 
> We tend to use
> 
>   typedef rope<char> string;
> 
> now.  The code changes to accomodate this were pretty minor.
> 

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

Attachment: pgpUopU9eXemc.pgp
Description: PGP signature


Reply to: