Fix C++20 compatibility in testcases

This commit is contained in:
Olly Betts 2022-07-25 16:40:16 +12:00
commit 8038cd7ac3
5 changed files with 17 additions and 6 deletions

View file

@ -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
};
%}