rope in libstdc++

Joe Buck Joe.Buck@synopsys.COM
Wed Aug 8 23:57:00 GMT 2007


On Thu, Aug 09, 2007 at 12:16:02AM +0100, Jonathan Wakely wrote:
> On 09/08/2007, Joe Buck <Joe.Buck@synopsys.com> wrote:
> > On Wed, Aug 08, 2007 at 03:57:38PM -0700, Brendan Miller wrote:
> > > Supposedly libstdc++ contains a rope class inherited from stlport. How
> > > do I access this?
> > >
> > > #include <rope>
> > >
> > > fails.
> >
> > #include <ext/rope>
> >
> 
> but take note of note http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4
> 
> The rope template is in namespace __gnu_cxx these days.

Right, sorry I forgot that.  As for the other question Jonathan asked,
both the STLport and libstdc++ versions of "rope" are based on the SGI
rope code; the former has lots of cruft to make it highly portable,
the latter is designed to fit in with libstdc++, and g++ users should
use the libstdc++ version.





More information about the Gcc-help mailing list