Opened 11 years ago

Closed 11 years ago

#5585 closed Feature Requests (fixed)

allow "C" locale grouping for other locales

Reported by: Antony Polukhin Owned by: Antony Polukhin
Milestone: Boost 1.47.0 Component: lexical_cast
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

According to Programming languages - C++ Digit grouping is checked. That is, the positions of discarded separators is examined for consistency with use_facet<numpunct<charT> >(loc ).grouping()

BUT what if there is no separators at all and grouping() is not empty? Well, we have no extraced separators, so we won`t check them for consistency. This will allow us to work with "C" locale from other locales.

Moreover, looks like some implementations of STL use this approach.

Change History (1)

comment:1 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: newclosed

(In [72315]) Fixes #5585 and adds test on it

Note: See TracTickets for help on using tickets.