From 63bf998b30cfac572dd368dc9d66bfb00b86fc52 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 17 Feb 2023 18:44:56 +0000 Subject: [PATCH] Make new testcase c++98 compliant --- .../test-suite/template_partial_specialization_more.i | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Examples/test-suite/template_partial_specialization_more.i b/Examples/test-suite/template_partial_specialization_more.i index 620a5625b..a9e0a591b 100644 --- a/Examples/test-suite/template_partial_specialization_more.i +++ b/Examples/test-suite/template_partial_specialization_more.i @@ -37,7 +37,7 @@ public: %template(VectInt) Vect; %template(FooVectIntDouble) Foo, double>; // was failing %template(FooShortPtrDouble) Foo; -%template(FooVectVectInt) Foo>, int>; // was failing +%template(FooVectVectInt) Foo >, int>; // was failing // (2) Same types in both args @@ -74,9 +74,9 @@ template struct Partialler { void special(S1* // (5) Default args used in specialization, like std::list %inline %{ template struct Allocator {}; -template > struct Lyst { void primary(T, Allocator) {} }; +template > struct Lyst { void primary(T, Allocator) {} }; template struct Lyst { void specialized1(TT, XXAlloc) {} }; -template struct Lyst> { void specialized2(TTT, YY) {} }; +template struct Lyst > { void specialized2(TTT, YY) {} }; // TODO Error: Inconsistent argument count in template partial specialization. 1 2 //template struct Lyst { void specialized3(TTTT) {} }; void test_list() { @@ -90,7 +90,7 @@ void test_list() { double mydouble = 0; Lyst lissd; - lissd.specialized2(mydouble, (double **)nullptr); + lissd.specialized2(mydouble, (double **)0); // Lyst lissconstint; // lissconstint.specialized3(myint); @@ -98,6 +98,6 @@ void test_list() { %} %template(LystDouble) Lyst; -//%template(LystDouble) Lyst>; +//%template(LystDouble) Lyst >; %template(LystPlainStructPtr) Lyst; %template(LystDoublePtrPtr) Lyst; // called specialized1 instead of specialized2