Re: std::string and refcounting

From: red floyd (no.spam_at_here.dude)
Date: 04/21/04


Date: Tue, 20 Apr 2004 22:29:11 GMT

joe martin wrote:

> In recent discussions relating to what to use for a new project which
> integrated the work of two, previously seperate, teams we got to the
> subject of our respective string implementations. One team rolled
> their own strings while the other used the std::string. Reasons for
> using the home-grown strings(and vectors) were mainly refcounting and
> portabillity, but I thought that these days almost all STL
> implementations used refcounted strings and that the STL was available
> for most platforms.
>
> When we got back to test things out with my compiler (MSVC++ 6 with
> the latest patch-level) strings were refcounted but on the other team
> lead's computer (.net) strings were not refcounted. Do any of you know
> a webpage or site that consolidates information about the STL
> implementations on various platforms or does anyone have specific
> information about the state of the STL on Windows, WinCE, Symbian, Mac
> or Linux?
>

std::string was changed in VC.NET because of threading issues. However,
that's kind of OT.



Relevant Pages

  • Re: std::string and refcounting
    ... > subject of our respective string implementations. ... but I thought that these days almost all STL ... > implementations used refcounted strings and that the STL was available ... refcounting is too hard in ...
    (comp.lang.cpp)
  • std::string and refcounting
    ... subject of our respective string implementations. ... their own strings while the other used the std::string. ... using the home-grown stringswere mainly refcounting and ... but I thought that these days almost all STL ...
    (comp.lang.cpp)
  • Re: std::string and refcounting
    ... >> lead's computer strings were not refcounted. ... >> a webpage or site that consolidates information about the STL ... >environments where the reference counting approach effectively requires ... This makes sense I guess although refcounting seems so much more ...
    (comp.lang.cpp)
  • Re: How to code this with STL?
    ... >those how are interested) and I'd like to compare its power to STL. ... >Consider two strings that contains only digits. ... >Hint: The collection has maximally 100 items. ...
    (comp.lang.cpp)
  • Re: Benchmarks: STLs string vs. C string
    ... without any extra strlen execution inside the sprintf. ... implementations, although all implementations I have tried have been very fast. ... In many programs you need to copy/format strings without actually doing a printf. ... I have noticed that most programmers dont care or know about the ...
    (comp.arch.embedded)