[Cppunit-devel] Bug in "Money, a step by step example"
Brought to you by:
blep
From: Nalcacioglu, A. <ahm...@gs...> - 2005-05-31 17:37:23
|
At : http://cppunit.sourceforge.net/doc/lastest/money_example.html <http://cppunit.sourceforge.net/doc/lastest/money_example.html> ======================= public: Money( double amount, std::string currency ) : m_amount( amount ) , m_currency( m_currency ) { } Should be ....m_currency( currency ) =========================== This costed me some time as it is a typo and not easy to see that m_currency is getting assigned to itself. If we can change it, we can save other souls? |