From c496fcb38c41ed6e1b3708dfba904c19ece8ee91 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Mon, 30 Mar 2020 02:19:03 +0300 Subject: [PATCH] Move the body of a template function to its header Signed-off-by: Dimitar Dobrev --- tests/CSharp/CSharp.cpp | 5 ----- tests/CSharp/CSharp.h | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/CSharp/CSharp.cpp b/tests/CSharp/CSharp.cpp index 71c8b9a0..88ba7d7a 100644 --- a/tests/CSharp/CSharp.cpp +++ b/tests/CSharp/CSharp.cpp @@ -1133,11 +1133,6 @@ void TestOutTypeInterfaces::funcTryInterfaceTypeOut(CS_OUT TestParamToInterfaceP { } -template -TemplateWithDependentField::TemplateWithDependentField() -{ -} - DerivesFromTemplateInstantiation::DerivesFromTemplateInstantiation() { } diff --git a/tests/CSharp/CSharp.h b/tests/CSharp/CSharp.h index 5a344000..6b31e8ca 100644 --- a/tests/CSharp/CSharp.h +++ b/tests/CSharp/CSharp.h @@ -849,13 +849,18 @@ public: }; template -class TemplateWithDependentField +class DLL_API TemplateWithDependentField { public: TemplateWithDependentField(); T t; }; +template +TemplateWithDependentField::TemplateWithDependentField() +{ +} + class DerivesFromTemplateInstantiation : public TemplateWithDependentField { public: