fix MSC problem with def. constructor

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-22 00:03:09 +00:00
commit 6a4cf00db3

View file

@ -26,17 +26,19 @@ static const int constant6 = 6;
class TestConstants {
public:
/* This gets mapped to a method */
TestConstants() : constant7(7) {}
/* This gets mapped to a method */
const int constant7;
/* This gets mapped to a singleton method, but this is not legal C++ */
/* This gets mapped to a singleton method, but this is not legal C++ */
static const int constant8;
/* This gets mapped to a method, but this it not legal C++ */
/*const int constant9 = 9;*/
/* This gets mapped to a constant */
static const int constant10 = 10;
/* This gets mapped to a method, but this it not legal C++ */
/*const int constant9 = 9;*/
/* This gets mapped to a constant */
static const int constant10 = 10;
};
const int TestConstants::constant8 = 8;
@ -82,4 +84,4 @@ public:
}
};
%}
%}