Article View: de.comp.lang.c++
Article #103Re: Is the STL too authentic... ?
From: Andreas Huennebeck
Date: Mon, 09 Oct 1995 09:10
Date: Mon, 09 Oct 1995 09:10
26 lines
1918 bytes
1918 bytes
In article <AC9C151B9668D9B8@sleipner.nts.mh.se>, lars.farm@nts.mh.se (Lars Farm) writes:
> In article <DG010o.LFK@research.att.com>,
> ark@research.att.com (Andrew Koenig) wrote:
>
> >Again, I think implementations that check the rules at run time are
> >a Good Thing, especialy if you can afford them. But sometimes you can't.
>
> In those few cases, I'd turn checking of selectively after testing and
> profiling. That is, I would if I could. It's always off in all my
> compilers:-( Why not reserve a #pragma for this? imho no range check by
> default is a premature optimization.
I recommend to do it the other way: range check on as default and a
#pragma to switch it off for the 1% of the code which is really time
critical (see also the posting of James Kanze).
==================================================================
... ... Andreas C. M. Huennebeck
. * . . Software Engineer
. . . . Bruker Analytische Messtechnik GmbH
B R U K E R D-76287 Rheinstetten, Germany
. . . . Tel : 49 (721) 5161-444
. * . . Fax : 49 (721) 5161-437
... ... email: ah@bruker.de
| MY OPINIONS ARE MY OWN AND DO NOT REPRESENT THOSE OF MY EMPLOYER |
===================================================================
Technical Details
Message-ID:
<1995Oct9.091043.16202@bam.bruker.de>Path:
arc1-ca.pugleaf.net!bruker.de!ahReferences:
<5vE-N3F6nTB@site71.ping.at> <DFxJ75.3w0@research.att.com> <KANZE.95Oct5121708@slsvgqt.lts.sel.alcatel.de> <DG010o.LFK@research.att.com> <AC9C151B9668D9B8@sleipner.nts.mh.se>Show Full Headers
Complete Article Headers
Newsgroups: de.comp.lang.c++,comp.lang.c++ Path: arc1-ca.pugleaf.net!bruker.de!ah From: ah@bruker.de (Andreas Huennebeck) Subject: Re: Is the STL too authentic... ? Organization: Bruker Analytische Messtechnik GmbH Date: Mon, 9 Oct 1995 09:10:43 GMT Message-ID: <1995Oct9.091043.16202@bam.bruker.de> Followup-To: de.comp.lang.c++,comp.lang.c++ X-Newsreader: xrn 7.00 (Motif) References: <5vE-N3F6nTB@site71.ping.at> <DFxJ75.3w0@research.att.com> <KANZE.95Oct5121708@slsvgqt.lts.sel.alcatel.de> <DG010o.LFK@research.att.com> <AC9C151B9668D9B8@sleipner.nts.mh.se> Sender: news@bam.bruker.de (News)