|
Boost : |
From: Andy Little (andy_at_[hidden])
Date: 2006-01-25 16:57:24
"Andy Little" <andy_at_[hidden]> wrote in message
news:dr8qlg$ken$1_at_sea.gmane.org...
>
> "David Abrahams" wrote
>
>> It's simple: it's a cast you use when the source type is implicitly
>> convertible to the target type, to force the implicit conversion.
>> It's less liberal than static_cast, which will convert in the opposite
>> direction.
>
> Hows the attached? Its <libs/conversion/index.html> with the above info on
> implicit_cast
> added.
I can see the attachments mangled. Here's the text.
regards
Andy Little
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Boost Conversion Library</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1><img border="0" src="../../boost.png" align="center" width="277"
height="86">Boost
Conversion Library</h1>
<p>The Conversion Library improves program safety and clarity by performing
otherwise messy conversions. It includes cast-style function templates
designed to complement the C++
Standard's built-in casts.</p>
<p>To reduce coupling, particularly to standard library IOStreams, the Boost
Conversion Library is
supplied by several headers:</p>
<ul>
<li>The boost/cast header provides
<b>polymorphic_cast<></b>
and <b>polymorphic_downcast<></b> to perform safe casting between
polymorphic types.<br>
</li>
<li>The boost/lexical_cast header provides
<b>lexical_cast<></b>
general literal text conversions, such as an <code>int</code> represented as
a <code>string</code>, or vice-versa.</li>
<li>The boost/implicit_cast header
provides <b>implicit_cast<></b> which is used when the source type is
implicitly convertible to the target type, to force the implicit conversion.
It's less liberal than static_cast, which will convert in the opposite
direction..<br>
</ul>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED"
S-Format="%d %B, %Y" startspan -->Jan 25, 2006<!--webbot bot="Timestamp" endspan
i-checksum="30348" -->
</p>
</body>
</html>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk