[Boost-bugs] [Boost C++ Libraries] #5585: allow "C" locale grouping for other locales

Subject: [Boost-bugs] [Boost C++ Libraries] #5585: allow "C" locale grouping for other locales
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-31 20:26:20


#5585: allow "C" locale grouping for other locales
-------------------------------------+--------------------------------------
 Reporter: apolukhin | Owner: apolukhin
     Type: Feature Requests | Status: new
Milestone: Boost 1.47.0 | Component: lexical_cast
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 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()[[BR]]

 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.[[BR]]

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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5585>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC