
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Andy Little Sent: Thursday, August 17, 2006 3:50 PM To: boost@lists.boost.org Subject: Re: [boost] Boost Units library preview
...
----------- output:
E:\projects\Test>testgcc quan qft.numeric_value() = 3 boost.units ft1.value() = 3 assertion "f1.value() == 3" failed: file "test.cpp", line 17 6 [sig] testgcc 3984 open_stackdumpfile: Dumping stack trace to testgcc.ex e.stackdump 33204 [sig] testgcc 3984 E:\projects\Test\testgcc.exe: *** fatal error - E:\pr ojects\Test\testgcc.exe: *** called with threadlist_ix -1
In the Units library, the default value type is (currently) double and the semantics of all arithmetic operations are based on this built-in type. No assumptions are made about semantics, only that the required operations exist for ValueType. What is the default value type in Quan? I'm guessing it has something to do with a united value or some other manipulation of value semantics within Quan? Also be careful of literal values and promotions. 3 is an integer, 3.0 is a double, 3L is a long, 3LL is a long long, etc. Eric.