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: 103376,9742b7560760142d X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: WG: SI Units - has Ada missed the boat? Date: Tue, 10 Jul 2007 02:14:55 -0700 Organization: http://groups.google.com Message-ID: <1184058895.207898.200040@d55g2000hsg.googlegroups.com> References: NNTP-Posting-Host: 81.156.56.52 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1184058895 28191 127.0.0.1 (10 Jul 2007 09:14:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 10 Jul 2007 09:14:55 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.12.1 (KHTML, like Gecko) Version/3.0.1 Safari/522.12.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=81.156.56.52; posting-account=SUPfBg0AAAD2c27sxTjOFS-ntqB08gQH Xref: g2news1.google.com comp.lang.ada:16451 Date: 2007-07-10T02:14:55-07:00 List-Id: On Jul 10, 2:26 am, Hyman Rosen wrote: [snip] > I expect that most C++ implementations will follow the rule that > 90% of the way is enough, and not bother with radians or trying to > distinguish between becquerel and hertz or Fahrenheit, Celsius, and > Kelvin. But if someone wants to go the whole way, they can do it. > It's just a matter of writing more complicated combining rules for > the templates. And none of it has any runtime overhead at all - > objects of dimensioned types take no more space than plain numbers. There's no runtime overhead when optimisation is switched on. Without optimisation there is quite a bit of overhead. Or at least that's my experience when using this library with VC++2005. Cheers -- Martin