Commit Graph

7 Commits

Author SHA1 Message Date
William S Fulton 8c8e27d246 Add warning for ineffective %template instantiations
on forward template class declarations. A full template class definition is
required in order to wrap a template class as a proxy class.

Also tidyup handling of classforward code (no observable changes in
test-suite).
2024-06-29 17:36:46 +01:00
William S Fulton 3556c41b98 Add more missing primary template definition testing 2024-06-28 19:32:09 +01:00
William S Fulton 1e6ba9f05b Test fix: instantiate specialized template
This change is required to fully test the previous commit
2024-06-28 19:32:09 +01:00
Vadim Zeitlin 5bcda83e15 Fix specialization without primary template
Due to a regression in 817c700 (Template partial specialization
improvements, 2023-01-30), specializations of templates without a
primary template definition were not handled correctly any more and,
notably, resulted in misparsing the injected name inside such
specializations.

Fix this by handling the nodes with template type "classforward" created
for the template declaration in the same way as those created for the
primary template definition.

Add a trivial test case which works (again) now but doesn't work without
the fix in this commit.

Closes #2934.
2024-06-28 19:32:09 +01:00
Marcelo Matus 4bf191197f fix warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 02:52:25 +00:00
William S Fulton 60ea8877de warning removal for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 23:03:27 +00:00
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00