1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<HTML>
<head><title>Use of const</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="topic4"></A><CENTER>
<A HREF="port.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="port10.htm#topic2"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="port11.htm#topic3"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="port13.htm#compat"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>Use of const</H2>
<P>
The <B>const</B> keyword is now used to denote constant functions that do not affect the
object, and for function arguments to denote that the object passed cannot be changed.<P>
This should not affect your application except for where you are overriding virtual functions
which now have a different signature. If functions are not being called which were previously,
check whether there is a parameter mismatch (or function type mismatch) involving consts.<P>
Try to use the <B>const</B> keyword in your own code where possible.<P>
</BODY></HTML>
|