Test would not compile on windows because it defines a template class called Rectangle, but Windows defines a function called Rectangle in wingdi.h. Thus renamed Rectangle to RectangleTest. Note this should not affect any test cases, because they test RectangleInt which is defined as RectangleText<int>. Thus the external api to the produced module does not change.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2005-09-24 21:42:07 +00:00
commit 32dfafdc39

View file

@ -3,6 +3,9 @@
%module template_classes
%{
%}
%inline %{
template <class T>
@ -14,7 +17,7 @@ private:
};
template <class T>
class Rectangle {
class RectangleTest {
public:
Point<T>& getPoint() {return point;}
void setPoint(Point<T>& value) {point = value;}
@ -25,6 +28,6 @@ private:
%}
%template(PointInt) Point<int>;
%template(RectangleInt) Rectangle<int>;
%template(RectangleInt) RectangleTest<int>;