From 280b82c8acacfce7be90b108685dd62e080ce53d Mon Sep 17 00:00:00 2001 From: James Gerity Date: Mon, 18 Jan 2021 14:36:22 -0500 Subject: [PATCH] Document lack of support for `auto` for C++ variables (#1125) --- Doc/Manual/CPlusPlus11.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/Manual/CPlusPlus11.html b/Doc/Manual/CPlusPlus11.html index 11335a251..e5d7fbc2d 100644 --- a/Doc/Manual/CPlusPlus11.html +++ b/Doc/Manual/CPlusPlus11.html @@ -336,6 +336,10 @@ int i; int j; decltype(i+j) k; // syntax error +

SWIG does not support auto as a type specifier for variables, only +for specifying the return type of lambdas +and functions.

+

7.2.7 Range-based for-loop