Some updates to c++11 warning messages and update docs on alias templates

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-09-21 18:04:15 +00:00
commit dbdbdd94aa
4 changed files with 47 additions and 10 deletions

View file

@ -454,7 +454,7 @@ CPP0X_TEST_CASES = \
# cpp0x_constructors \ # not supported by any compiler yet
# cpp0x_hash_tables \ # not fully implemented yet
# cpp0x_lambda_functions \ # not supported by GCC or MSVC yet
# cpp0x_template_typedefs \ # not supported by any compiler yet
# cpp0x_template_typedefs \ # not supported by any compiler yet (now in gcc-4.7)
# cpp0x_thread_local \ # not supported by any compiler yet
# cpp0x_unrestricted_unions \ # not supported by any compiler yet (now in gcc-4.6)

View file

@ -1,4 +1,4 @@
/* This testcase checks whether SWIG correctly parses the template aliasing. */
/* This testcase checks whether SWIG correctly parses alias templates. */
%module cpp0x_template_typedefs
%inline %{
@ -12,6 +12,7 @@ class SomeType {
template< typename T2 >
using TypedefName = SomeType<char*, T2, 5>;
// type aliasing
typedef void (*PFD)(double); // Old style
using PF = void (*)(double); // New introduced syntax
%}