Browse Source

Move the body of a template function to its header

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1307/head
Dimitar Dobrev 5 years ago
parent
commit
c496fcb38c
  1. 5
      tests/CSharp/CSharp.cpp
  2. 7
      tests/CSharp/CSharp.h

5
tests/CSharp/CSharp.cpp

@ -1133,11 +1133,6 @@ void TestOutTypeInterfaces::funcTryInterfaceTypeOut(CS_OUT TestParamToInterfaceP @@ -1133,11 +1133,6 @@ void TestOutTypeInterfaces::funcTryInterfaceTypeOut(CS_OUT TestParamToInterfaceP
{
}
template <typename T>
TemplateWithDependentField<T>::TemplateWithDependentField()
{
}
DerivesFromTemplateInstantiation::DerivesFromTemplateInstantiation()
{
}

7
tests/CSharp/CSharp.h

@ -849,13 +849,18 @@ public: @@ -849,13 +849,18 @@ public:
};
template <typename T>
class TemplateWithDependentField
class DLL_API TemplateWithDependentField
{
public:
TemplateWithDependentField();
T t;
};
template <typename T>
TemplateWithDependentField<T>::TemplateWithDependentField()
{
}
class DerivesFromTemplateInstantiation : public TemplateWithDependentField<int>
{
public:

Loading…
Cancel
Save