Fix using declarations and templates. %template was putting the

instantiated template into the global namespace instead of the namespace
of the template definition. This fixes regression in swig-2.0.5 copying
the std::pair typemaps which occurs with a 'using std::pair'
declaration. This also fixes lots of other using declarations of
template problems (template forward declarations. combinations
using directives).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-08-04 20:24:22 +00:00
commit 54726b9d09
9 changed files with 339 additions and 7 deletions

View file

@ -370,6 +370,8 @@ CPP_TEST_CASES += \
template_inherit_abstract \
template_int_const \
template_methods \
template_namespace_forward_declaration \
template_using_directive_and_declaration_forward \
template_nested \
template_nested_typemaps \
template_ns \
@ -476,6 +478,7 @@ CPP_STD_TEST_CASES += \
li_std_except \
li_std_map \
li_std_pair \
li_std_pair_using \
li_std_string \
li_std_vector \
li_std_vector_enum \