Add link for const sections
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
97f959ddf0
commit
eefaef3bdb
2 changed files with 8 additions and 2 deletions
|
|
@ -797,6 +797,12 @@ In this case, the pointer <tt>e</tt> can change---it's only the value
|
|||
being pointed to that is read-only.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Please note that for const parameters or return types used in a function, SWIG pretty much ignores
|
||||
the fact that these are const, see the section on <a href="SWIGPlus.html#SWIGPlus_const">const-correctness</a>
|
||||
for more information.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Compatibility Note:</b> One reason for changing SWIG to handle
|
||||
<tt>const</tt> declarations as read-only variables is that there are
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
<li><a href="#SWIGPlus_nn34">Smart pointers and operator->()</a>
|
||||
<li><a href="#SWIGPlus_nn35">Using declarations and inheritance</a>
|
||||
<li><a href="#SWIGPlus_nested_classes">Nested classes</a>
|
||||
<li><a href="#SWIGPlus_nn37">A brief rant about const-correctness</a>
|
||||
<li><a href="#SWIGPlus_const">A brief rant about const-correctness</a>
|
||||
<li><a href="#SWIGPlus_nn42">Where to go for more information</a>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -4835,7 +4835,7 @@ Nested class warnings could also not be suppressed using %warnfilter.
|
|||
</p>
|
||||
|
||||
|
||||
<H2><a name="SWIGPlus_nn37"></a>6.27 A brief rant about const-correctness</H2>
|
||||
<H2><a name="SWIGPlus_const"></a>6.27 A brief rant about const-correctness</H2>
|
||||
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue