diff --git a/lexical_cast.htm b/lexical_cast.htm index 0ec5553..949b70c 100644 --- a/lexical_cast.htm +++ b/lexical_cast.htm @@ -4,7 +4,7 @@
-The following example uses numeric data in a string expression:-int main(int argc, char * argv[]) +int main(int argc, char * argv[]) { using boost::lexical_cast; using boost::bad_lexical_cast; @@ -112,8 +111,7 @@ int main(int argc, char * argv[]) }
--void log_message(const std::string &); +void log_message(const std::string &); void log_errno(int yoko) { @@ -125,12 +123,11 @@ void log_errno(int yoko)Synopsis
Library features defined in"boost/lexical_cast.hpp"
:-Unit test defined in-namespace boost +namespace boost { class bad_lexical_cast; template<typename Target, typename Source> - Target lexical_cast(Source arg); + Target lexical_cast(const Source& arg); }"lexical_cast_test.cpp"
. @@ -138,9 +135,8 @@ namespace boost
lexical_cast
-Returns the result of streaming-template<typename Target, typename Source> - Target lexical_cast(Source arg); +template<typename Target, typename Source> + Target lexical_cast(const Source& arg);arg
into a standard library string-based stream and then out as aTarget
object. @@ -186,8 +182,7 @@ template<typename Target, typename Source>
bad_lexical_cast
--class bad_lexical_cast : public std::bad_cast +class bad_lexical_cast : public std::bad_cast { public: ... // same member function interface as std::exception @@ -236,4 +231,4 @@ public:© Copyright Kevlin Henney, 20002005-