Create Set Function With Different Currencies
As it is a common operation, there should be a function that automatically does the following:
Pecunia::Money.assign(other)
{
if (this->code() != other.code())
this->setCode(other.code());
*this = other;
}
Edited by John Schneiderman