Scilab: fix constructor_copy test_case
using vector<T> needs T have default constructor
This commit is contained in:
parent
16d45620ba
commit
74243ae306
1 changed files with 10 additions and 8 deletions
|
|
@ -5,13 +5,13 @@
|
||||||
%nocopyctor Bar<double>;
|
%nocopyctor Bar<double>;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
struct Foo1 {
|
struct Foo1 {
|
||||||
int x;
|
int x;
|
||||||
|
|
||||||
Foo1(int _x = 2) : x(_x)
|
Foo1(int _x = 2) : x(_x)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Foo2 {
|
struct Foo2 {
|
||||||
|
|
@ -25,7 +25,7 @@ struct Foo3 {
|
||||||
|
|
||||||
struct Foo4 {
|
struct Foo4 {
|
||||||
Foo4() { }
|
Foo4() { }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Foo4(const Foo4& ) { }
|
Foo4(const Foo4& ) { }
|
||||||
};
|
};
|
||||||
|
|
@ -33,7 +33,7 @@ protected:
|
||||||
|
|
||||||
struct Foo4a {
|
struct Foo4a {
|
||||||
Foo4a() { }
|
Foo4a() { }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Foo4a(const Foo4a& ) { }
|
Foo4a(const Foo4a& ) { }
|
||||||
};
|
};
|
||||||
|
|
@ -53,7 +53,7 @@ struct Foo8 {
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class Bar
|
class Bar
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int x;
|
int x;
|
||||||
|
|
@ -95,12 +95,14 @@ public:
|
||||||
namespace Space {
|
namespace Space {
|
||||||
class Flow {
|
class Flow {
|
||||||
public:
|
public:
|
||||||
|
Flow() {}
|
||||||
Flow(int i) {}
|
Flow(int i) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class FlowFlow {
|
class FlowFlow {
|
||||||
public:
|
public:
|
||||||
|
FlowFlow() {}
|
||||||
FlowFlow(int i) {}
|
FlowFlow(int i) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -124,7 +126,7 @@ public:
|
||||||
template <class T>
|
template <class T>
|
||||||
struct ModelUtils_T {};
|
struct ModelUtils_T {};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
@ -142,13 +144,13 @@ namespace Space1 {
|
||||||
class TotalReturnSwap {
|
class TotalReturnSwap {
|
||||||
public:
|
public:
|
||||||
TotalReturnSwap() {}
|
TotalReturnSwap() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class TotalReturnSwap_T {
|
class TotalReturnSwap_T {
|
||||||
public:
|
public:
|
||||||
TotalReturnSwap_T() {}
|
TotalReturnSwap_T() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue