Fix C++20 compatibility in testcases
This commit is contained in:
parent
5a4baece4f
commit
8038cd7ac3
5 changed files with 17 additions and 6 deletions
|
|
@ -7,7 +7,13 @@ template<class T>
|
|||
class Foo {
|
||||
T y;
|
||||
public:
|
||||
#ifdef SWIG
|
||||
Foo<T>(T x) : y(x) { }
|
||||
#else
|
||||
// Modern compilers reject this, so feed the compiler the corrected
|
||||
// version.
|
||||
Foo(T x) : y(x) { }
|
||||
#endif
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue