From c17002aa73598ddb7f7543da469741e039993eaa Mon Sep 17 00:00:00 2001 From: Alexander Nasonov Date: Wed, 23 Aug 2006 19:47:56 +0000 Subject: [PATCH] get rid of lexical_cast.hpp impl details in the test [SVN r34932] --- lexical_cast_test.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lexical_cast_test.cpp b/lexical_cast_test.cpp index ca209fc..8f9601f 100644 --- a/lexical_cast_test.cpp +++ b/lexical_cast_test.cpp @@ -368,20 +368,17 @@ std::basic_string to_str_gcc_workaround(std::basic_string str) { std::locale loc; std::numpunct const& np = BOOST_USE_FACET(std::numpunct, loc); + std::ctype const& ct = BOOST_USE_FACET(std::ctype, loc); if(np.grouping().empty()) return str; - CharT prefix[3] = { - boost::detail::lcast_char_constants::minus, - np.thousands_sep(), - CharT() - }; + CharT prefix[3] = { ct.widen('-'), np.thousands_sep(), CharT() }; if(str.find(prefix) != 0) return str; - prefix[1] = CharT(); // "-," -> "-" + prefix[1] = CharT(); str.replace(0, 2, prefix); return str; }