Add template aliasing and type aliasing into symbol table and enable explicit warning suppression for these. They still need to be added into the parse tree and dealt with.

This commit is contained in:
William S Fulton 2013-02-04 20:26:52 +00:00
commit 3020bc328c
2 changed files with 26 additions and 2 deletions

View file

@ -1,6 +1,9 @@
/* This testcase checks whether SWIG correctly parses alias templates. */
%module cpp0x_template_typedefs
%warnfilter(SWIGWARN_CPP11_ALIAS_TEMPLATE) TypedefName;
%warnfilter(SWIGWARN_CPP11_ALIAS_DECLARATION) PF;
%inline %{
template< typename T1, typename T2, int >
class SomeType {
@ -9,6 +12,7 @@ class SomeType {
int c;
};
// template aliasing
template< typename T2 >
using TypedefName = SomeType<char*, T2, 5>;