corrected a small problem with conversion of numeric types to amount_t's
This commit is contained in:
parent
d4657c66f4
commit
a4d96f79bf
1 changed files with 14 additions and 17 deletions
11
amount.h
11
amount.h
|
|
@ -184,13 +184,10 @@ class amount_t
|
|||
|
||||
template <typename T>
|
||||
void parse_num(T num) {
|
||||
std::string str;
|
||||
{ std::ostringstream strstr(str);
|
||||
strstr << num;
|
||||
}
|
||||
{ std::istringstream strstr(str);
|
||||
parse(strstr);
|
||||
}
|
||||
std::ostringstream temp;
|
||||
temp << num;
|
||||
std::istringstream in(temp.str());
|
||||
parse(in);
|
||||
}
|
||||
|
||||
int sign() const;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue