ICU-7455 readme note about requiring compiler RTTI

X-SVN-Rev: 28085
This commit is contained in:
Markus Scherer 2010-05-21 21:26:37 +00:00
parent bdd8a3a473
commit 090e24946f

View file

@ -204,11 +204,31 @@
<p>To see which APIs are new or changed in this release, view the <a href="APIChangeReport.html">ICU4C API Change Report</a>. </p>
<p><!-- The following list concentrates on <em>changes that affect existing
applications migrating from previous ICU releases</em>. --> For more news about
<p>The following list concentrates on <em>changes that affect existing
applications migrating from previous ICU releases</em>.
For more news about
this release, see the <a href="http://site.icu-project.org/download">ICU
download page</a>.</p>
<ul>
<li><strong>Compiler RTTI</strong><br />
ICU 4.6 requires compiler RTTI to be turned on.
It is used with many of ICU's polymorphic classes
(classes with virtual functions; they are subclasses of UObject).<br />
Existing "poor man's RTTI" functions continue to be available, but
the ICU code does not use them any more and users are encouraged
to use real C++ RTTI as well where necessary.
(<code>dynamic_cast&lt;pointer&gt;</code> for casting and testing whether
an object is an instance of a class <em>or subclass</em>,
and <code>typeid(object or type)</code> for testing for type equality.)<br />
New ICU class hierarchies (new immediate subclasses of UObject) will not
add "poor man's RTTI" functions.<br />
On AIX with the Visual Age compiler, RTTI must be turned on explicitly
via the the <code>-qrtti</code> option.
When using ICU's own makefiles, this is done automatically via the
<code><a href="source/config/mh-aix-va">mh-aix-va</a></code> file.</li>
</ul>
<h2><a name="Download" href="#Download" id="Download">How To Download the
Source Code</a></h2>