From dbdbdd94aa44da8e3213c08cd252549578db17a4 Mon Sep 17 00:00:00 2001
From: William S Fulton
+The following is an example of an alias template: + +
+template< typename T1, typename T2, int > +class SomeType { + T1 a; + T2 b; + int c; +}; + +template< typename T2 > +using TypedefName = SomeType<char*, T2, 5>; +
SWIG currently parses the new using name = syntax, but -ignores the definition:
++These are partially supported as SWIG will parse these and identify them, however, they are ignored as they are not added to the type system. A warning such as the following is issued: +
+ ++example.i:13: Warning 342: The 'using' keyword in template aliasing is not fully supported yet. ++
+Similarly for non-template type aliasing: +
using PFD = void (*)(double); // New introduced syntax
You should still define the typedefs using the old syntax:
++A warning will be issued: +
+ ++example.i:17: Warning 341: The 'using' keyword in type aliasing is not fully supported yet. ++
The equivalent old style typedefs can be used as a workaround:
typedef void (*PFD)(double); // The old style -- cgit v1.2.3