add more support for operators + templates

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-05 10:26:37 +00:00
commit e1534a90e0
3 changed files with 48 additions and 10 deletions

View file

@ -12,6 +12,12 @@
%inline %{
template <class C>
struct Bar_T
{
};
namespace test {
enum Hello {
@ -165,6 +171,9 @@ namespace jafar {
template<class T>
void operator < (T& x){}
template<class T>
operator Bar_T<T> () {}
};
}
@ -173,8 +182,9 @@ namespace jafar {
%template(toFrame) jafar::jmath::EulerT3D::toFrame<int,int,int>;
%template(callint) jafar::jmath::EulerT3D::operator()<int>;
%template(lessint) jafar::jmath::EulerT3D::operator< <int>;
%template(lessint) jafar::jmath::EulerT3D::operator < <int>;
%template(callfooi) jafar::jmath::EulerT3D::operator() <test::hola::FooT<int> >;
%template(lessfooi) jafar::jmath::EulerT3D::operator < < test::hola::FooT<int> >;
%inline %{
@ -225,3 +235,9 @@ public:
};
%template(hi) Ala::hi<int>;
%extend jafar::jmath::EulerT3D
{
}