Document lack of support for auto for C++ variables (#1125)

This commit is contained in:
James Gerity 2021-01-18 14:36:22 -05:00 committed by Olly Betts
commit 280b82c8ac

View file

@ -336,6 +336,10 @@ int i; int j;
decltype(i+j) k; // syntax error
</pre></div>
<p>SWIG does not support <tt>auto</tt> as a type specifier for variables, only
for specifying the return type of <a href="#CPlusPlus11_lambda_functions_and_expressions">lambdas</a>
and <a href="#CPlusPlus11_alternate_function_syntax">functions</a>.</p>
<H3><a name="CPlusPlus11_range_based_for_loop">7.2.7 Range-based for-loop</a></H3>