|
Boost Users : |
From: Sliwa, Przemyslaw (London) (Przemyslaw_Sliwa_at_[hidden])
Date: 2005-04-15 10:44:47
Thanks,
Ben, what should I use for representing the money amounts?
A boolean :)) ?
Thanks for help,
Pshemek
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Ben Hutchings
Sent: 15 April 2005 15:52
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] RE: Boost thread problem
Sliwa, Przemyslaw (London) wrote:
> Hi,
>
> Thanks for help,
>
> On a Linux box I have to link against libc_r too?
> Probably yes, but could you confirm this?
No. Just use the compiler options "-pthread -D_REENTRANT" consistently.
libc_r is a BSD thing.
> It seems the usage of the vector cases problems with the
> multithreaded programs on the multiprocessor machines. I have changed
> it to queue and the bug has been resolved. I cannot reproduce it now.
I think the bug might lie in the copy-assignment operator for CFXTrade.
std::vector<CFXTrade> may use that whereas std::queue<CFXTrade>
probably will not.
By the way, what are you planning on doing with the money left over as a
result of rounding errors? (Seriously, double is not a suitable type
for representing amounts of money. Check your local accounting
regulations.)
Ben.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net