I think you need STLport. Compile it with boost.<br><br><div><span class="gmail_quote">On 7/26/06, <b class="gmail_sendername">Ԭ����</b> &lt;<a href="mailto:farproc@gmail.com">farproc@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Dear boost-users:<br><br>I am really sorry for asking shch a silly question, but I really need your help!<br><br>boost::lexical_cast is a great function to do casting. If I want is to cast from string to a &quot;long long&quot; type value, I can use the follow:
<br><br>long long llVar = lexical_cast&lt;long long&gt;(&quot;123456789&quot;);<br><br>It is alright in this circs, but what if:<br><br>lexical_cast&lt;long long&gt;(&quot;9999999999999999999999999999999999999999999999999999999999999999999999999999&quot;);
<br><br>This is an obvious overflow, but I have no way to handle this error, it returns a wrong number without throwing an exception!<br><br>Any suggestion? Thank you very much!!!<br><div style="margin-left: 480px;">Kevin
<br></div>

</div><br>_______________________________________________<br>Boost-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Sincerely,<br>liang