fix MSC problem with def. constructor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dff4587f5b
commit
eab4722ec0
1 changed files with 10 additions and 8 deletions
|
|
@ -26,17 +26,19 @@ static const int constant6 = 6;
|
||||||
|
|
||||||
class TestConstants {
|
class TestConstants {
|
||||||
public:
|
public:
|
||||||
/* This gets mapped to a method */
|
TestConstants() : constant7(7) {}
|
||||||
|
|
||||||
|
/* This gets mapped to a method */
|
||||||
const int constant7;
|
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;
|
static const int constant8;
|
||||||
|
|
||||||
/* This gets mapped to a method, but this it not legal C++ */
|
/* This gets mapped to a method, but this it not legal C++ */
|
||||||
/*const int constant9 = 9;*/
|
/*const int constant9 = 9;*/
|
||||||
|
|
||||||
/* This gets mapped to a constant */
|
/* This gets mapped to a constant */
|
||||||
static const int constant10 = 10;
|
static const int constant10 = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
const int TestConstants::constant8 = 8;
|
const int TestConstants::constant8 = 8;
|
||||||
|
|
@ -82,4 +84,4 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue