|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73706 - trunk/libs/conversion/doc
From: antoshkka_at_[hidden]
Date: 2011-08-12 13:08:17
Author: apolukhin
Date: 2011-08-12 13:08:17 EDT (Fri, 12 Aug 2011)
New Revision: 73706
URL: http://svn.boost.org/trac/boost/changeset/73706
Log:
Very small update for FAQ section of documentation
Text files modified:
trunk/libs/conversion/doc/lexical_cast.qbk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/conversion/doc/lexical_cast.qbk
==============================================================================
--- trunk/libs/conversion/doc/lexical_cast.qbk (original)
+++ trunk/libs/conversion/doc/lexical_cast.qbk 2011-08-12 13:08:17 EDT (Fri, 12 Aug 2011)
@@ -130,7 +130,7 @@
* [*Answer:] Lexical conversion to any char type is simply reading a byte from source. But since the source has more than one byte, the exception is thrown.
Please use other integer types such as `int` or `short int`. If bounds checking is important, you can also
call __numericcast__:
-`numeric_cast<int8_t>(lexical_cast<int>("127"));`
+`numeric_cast<unsigned char>(lexical_cast<int>("127"));`
[pre
]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk