From 2d717988c286fa872412aaa6fbeebb3cd6424fb6 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 17 Jun 2025 18:32:28 +1200 Subject: [PATCH] Add another recently fixed case Fixed by 3f4ed829455f388d0cf2ad8be097af7e0056e942. See #1589 and #3011. --- Examples/test-suite/cpp11_template_parameters_decltype.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Examples/test-suite/cpp11_template_parameters_decltype.i b/Examples/test-suite/cpp11_template_parameters_decltype.i index 0d05bb886..04668002d 100644 --- a/Examples/test-suite/cpp11_template_parameters_decltype.i +++ b/Examples/test-suite/cpp11_template_parameters_decltype.i @@ -6,6 +6,10 @@ template void A() { } %} +// Additional test for #1589 (just check SWIG can parse this). +%ignore x1589; +int x1589(int y = std::declval().begin()->first) { return y; } + // %template(A) A<>; // not working %template(A) A; // workaround