From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4215feeab2a8154a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: C++0x and Threads - a poor relation to Ada's tasking model? Date: Fri, 14 Aug 2009 14:43:52 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <850893f5-46e5-443f-af0f-f16eef5cfa37@n2g2000vba.googlegroups.com> <57766742-5e6e-4b68-8094-57db1fa8951d@s15g2000yqs.googlegroups.com> <2kra85p2lsrd7200mcfr9fn65s123468br@4ax.com> <625c577b-9097-4a8d-a9cb-dd986dd81f89@h30g2000vbr.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1250275434 16801 192.74.137.71 (14 Aug 2009 18:43:54 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 14 Aug 2009 18:43:54 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:5Ly0iOwFEnVEKy+kGsaeY8ErWOE= Xref: g2news2.google.com comp.lang.ada:7798 Date: 2009-08-14T14:43:52-04:00 List-Id: REH writes: >...A couple of years ago, a wrote a class template that > would do range/overflow checking. That, of course, is trivial. The > neat thing about it is that it used template specialization to remove > unnecessary checks at compile-time (e.g., the compiler could determine > that the arithmetic operation could not overflow). It would "track" a > variable's max. possible bounds as it was manipulated, and strip the > unnecessary checks from expressions (again, all at compile-time). I > published an article on it in Dr. Dobb's. Intereesting. Is that available on-line somewhere? - Bob