However this still seems like a bug to me (it'd be nicer to handle this as an overload, like would happen if the namespaces just weren't there). It especially seems wrong that the collision still happens if %nspace is used.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still present with trunk shortly before 2.0.0.
Still present with current git master.
Diff:
Still present in git shortly after 4.2.0.
It also seems to fail even if
%nspace N;
is used with a target language with%nspace
support.I noticed the problem reported here is actually documented in the manual:
https://www.swig.org/Doc4.2/SWIGPlus.html#SWIGPlus_namespaces
However this still seems like a bug to me (it'd be nicer to handle this as an overload, like would happen if the namespaces just weren't there). It especially seems wrong that the collision still happens if
%nspace
is used.