add note for namespace issues
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2b3183ba51
commit
3c8bb6dba8
1 changed files with 13 additions and 0 deletions
|
|
@ -54,6 +54,19 @@
|
||||||
r = circle.radius()
|
r = circle.radius()
|
||||||
|
|
||||||
where circle is a Circle proxy instance.
|
where circle is a Circle proxy instance.
|
||||||
|
|
||||||
|
NOTES: remember to fully qualify all the type names and don't
|
||||||
|
use %factory inside a namespace declaration, ie, instead of
|
||||||
|
|
||||||
|
namespace Foo {
|
||||||
|
%factory(Geometry *Geometry::create, Point, Circle);
|
||||||
|
}
|
||||||
|
|
||||||
|
use
|
||||||
|
|
||||||
|
%factory(Foo::Geometry *Foo::Geometry::create, Foo::Point, Foo::Circle);
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
%define %_factory_dispatch(Type)
|
%define %_factory_dispatch(Type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue