mirror of https://github.com/swig/swig
Make csharp_argument_defaults_feature testcase c++98 compatible
This commit is contained in:
parent
77fbd1918b
commit
90e029bffd
|
@ -17,7 +17,7 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
enum class EnumerationType {
|
enum EnumerationType {
|
||||||
one=1,
|
one=1,
|
||||||
two,
|
two,
|
||||||
three
|
three
|
||||||
|
@ -58,7 +58,7 @@ public:
|
||||||
{
|
{
|
||||||
return (int)s.size();
|
return (int)s.size();
|
||||||
}
|
}
|
||||||
int valueofenum(EnumerationType t=EnumerationType::two)
|
int valueofenum(EnumerationType t=two)
|
||||||
{
|
{
|
||||||
return (int)t;
|
return (int)t;
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ public:
|
||||||
class AnInterface
|
class AnInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AnInterface()=default;
|
AnInterface() {}
|
||||||
virtual int foo(int x=1, int y=2, int z=3) = 0;
|
virtual int foo(int x=1, int y=2, int z=3) = 0;
|
||||||
virtual ~AnInterface() {}
|
virtual ~AnInterface() {}
|
||||||
};
|
};
|
||||||
|
@ -88,7 +88,7 @@ public:
|
||||||
class AnImplementation: public AnInterface
|
class AnImplementation: public AnInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int foo(int x=1, int y=2, int z=3) override
|
int foo(int x=1, int y=2, int z=3)
|
||||||
{
|
{
|
||||||
return x*y+z;
|
return x*y+z;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue