
"Eric Lemings" <lemings@roguewave.com> wrote in message news:D730FF7CEDDCA64483F9E99D999A158B4203E5@qxvcexch01.ad.quovadx.com...
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Andy Little Sent: Wednesday, August 16, 2006 7:46 AM To: boost@lists.boost.org Subject: Re: [boost] Boost Units library preview
Hi Eric,
...
Tested in VC7.1 and VC8.0 of vthe two examples gave compile errors. Testing in gcc 4.0 gave a failed assertion at runtime
I assume you mean the measure_test. Try the following simple patch:
OK, but I don't see why it fails for Boost.Units but not for Quan: ---------------------------------------------- #include <quan/length.hpp> #include <boost/units/length_unit.hpp> #include <iostream> #include <cassert> int main() { std::cout.precision(32); // Quan quan::length::ft qft(3); std::cout << "quan qft.numeric_value() = "<< qft.numeric_value() << '\n'; assert(qft.numeric_value() ==3); // Boost.Units boost::units::feet f1(3); std::cout << "boost.units ft1.value() = " << f1.value() <<'\n'; assert (f1.value() == 3); } ----------- 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 ------------------------------- ??? regards Andy Little