🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: string::npos is unhandy and dangerous

#4006
From: Rich Paul
Date: Fri, 12 Apr 1996 15:53
16 lines
1513 bytes
Nathan Myers, http://www.cantrip.org/ wrote:

> This is very astute.  The question of how npos should specified
> is still up for discussion, for just the reason John mentioned.
> Clearly, the standard must not constrain allocators in this way
> just allow the basic_string template to be described more
> conveniently.

I'm wondering if the string template is perhaps a bit TOO flexable.
---
[ 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: <316DAFF7.11C6@trcinc.com>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
References: <news:4k06dh$kni@penguin.doc.ic.ac.uk> <4k1s4j$jk0@bmtlh10.bnr.ca> <3164B306.7B53B7FB@cantrip.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: Rich Paul <rpaul@trcinc.com>
Newsgroups: comp.std.c++
Subject: Re: string::npos is unhandy and dangerous
Date: 12 Apr 1996 08:53:23 PDT
Organization: Technical Resource Connection
Approved: austern@isolde.mti.sgi.com
Message-ID: <316DAFF7.11C6@trcinc.com>
References: <news:4k06dh$kni@penguin.doc.ic.ac.uk> <4k1s4j$jk0@bmtlh10.bnr.ca> <3164B306.7B53B7FB@cantrip.org>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Thu, 11 Apr 1996 21:20:55 -0400
X-Mailer: Mozilla 2.01Gold (WinNT; I)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMW58dEy4NqrwXLNJAQHmvQH9HNcCUyNWG7OWssdj4D5FMMF91UKT4m13
 /lRdzYKlJOZj78FxpQ6TTwrLU0wDFOSlmudxRokkF33PS53pENe9Ow==
 =hWEs
Originator: austern@isolde.mti.sgi.com