vpiotr / decimal_for_cpp

Decimal data type for C++
273 stars 68 forks source link

Ignore thousands separators when reading from stream #10

Closed kuriboshi closed 9 years ago

kuriboshi commented 9 years ago

Thanks for accepting my pull request for toStream. As you noted, the fromStream function doesn't handle thousands separators when reading from a stream. Here is an attempt to fix this in the fromStream function. I'm sure there are other locale related subtleties I'm not taking care of.

vpiotr commented 9 years ago

Corrected another way (in theory stream can be without facet so I've made it optional). Thanks for idea!