🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #4045

Re: char_traits<T> return values

#4045
From: Rich Paul
Date: Mon, 15 Apr 1996 16:37
16 lines
1457 bytes
Nathan Myers <ncm@cantrip.org> wrote:
> It only matters when you convert back via c_str(); then, of course,
> to C the string will look shorter than it is.  Tough.

Aha ... well, that solves the length cacheing problem ... given 
that operator[] could insert an eos() I've been avoiding keeping 
track of string length ... well that's a wrinkle.

Thanks alot fo the input!
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <317253FB.1DB7@cyberspy.com>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
References: <316DB8A8.2556@cyberspy.com> <316F5716.53ABC674@cantrip.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: Rich Paul <linguist@cyberspy.com>
Newsgroups: comp.std.c++
Subject: Re: char_traits<T> return values
Date: 15 Apr 1996 09:37:35 PDT
Organization: Technical Resource Connection
Approved: austern@isolde.mti.sgi.com
Message-ID: <317253FB.1DB7@cyberspy.com>
References: <316DB8A8.2556@cyberspy.com> <316F5716.53ABC674@cantrip.org>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Mon, 15 Apr 1996 09:49:47 -0400
X-Mailer: Mozilla 2.01Gold (WinNT; I)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMXJ7UUy4NqrwXLNJAQFq5AH9GQys0rK9abOJk7qhWpZ2acZvbW1SXBBG
 WurwX4xOEMFFOmiTGOzWB/dwredGFHQyjSQEXXgfp4z6Y6eUoXXm4g==
 =jWoS
Originator: austern@isolde.mti.sgi.com