Fixes #6127 (wchar_t usage outside of #ifndef BOOST_LCAST_NO_WCHAR_T )

[SVN r75813]
This commit is contained in:
Antony Polukhin
2011-12-05 16:29:45 +00:00
parent 7dd63d08d6
commit 2312691bde

View File

@@ -17,7 +17,8 @@
// enhanced with contributions from Terje Slettebo, // enhanced with contributions from Terje Slettebo,
// with additional fixes and suggestions from Gennaro Prota, // with additional fixes and suggestions from Gennaro Prota,
// Beman Dawes, Dave Abrahams, Daryle Walker, Peter Dimov, // Beman Dawes, Dave Abrahams, Daryle Walker, Peter Dimov,
// Alexander Nasonov, Antony Polukhin, Justin Viiret and other Boosters // Alexander Nasonov, Antony Polukhin, Justin Viiret, Michael Hofmann
// and other Boosters
// when: November 2000, March 2003, June 2005, June 2006, March 2011 // when: November 2000, March 2003, June 2005, June 2006, March 2011
#include <climits> #include <climits>
@@ -683,8 +684,8 @@ namespace boost
, const CharT opening_brace, const CharT closing_brace) , const CharT opening_brace, const CharT closing_brace)
{ {
using namespace std; using namespace std;
const wchar_t minus = lcast_char_constants<wchar_t>::minus; const CharT minus = lcast_char_constants<CharT>::minus;
const wchar_t plus = lcast_char_constants<wchar_t>::plus; const CharT plus = lcast_char_constants<CharT>::plus;
const int inifinity_size = 8; const int inifinity_size = 8;
bool has_minus = false; bool has_minus = false;