From eab4722ec0cab11bdf66827f34b7dc8dc45deb9b Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 22 Jan 2006 00:03:09 +0000 Subject: [PATCH] fix MSC problem with def. constructor git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8510 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/ruby/naming.i | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/SWIG/Examples/test-suite/ruby/naming.i b/SWIG/Examples/test-suite/ruby/naming.i index 9354a38ab..3ad01e34c 100644 --- a/SWIG/Examples/test-suite/ruby/naming.i +++ b/SWIG/Examples/test-suite/ruby/naming.i @@ -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: } }; -%} \ No newline at end of file +%}