PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/conversion_namespace.i

#
Swig | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | daa7869129f54058455c7eea0bdd3e91 MD5 | raw file
 1%module conversion_namespace
 2%rename(toFoo) oss::Bar::operator Foo();
 3
 4%inline %{ 
 5 namespace oss 
 6 { 
 7   struct Foo {
 8   };
 9   struct Bar {
10      operator Foo () { return Foo(); }
11   };
12  } 
13%} 
14