File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,15 @@ private void AddSpecialization(ClassTemplateSpecialization specialization)
97
97
private void CleanSpecializations ( Class template )
98
98
{
99
99
template . Specializations . RemoveAll ( s =>
100
- s . SpecializationKind == TemplateSpecializationKind . Undeclared ||
101
- ( ! specializations . Contains ( s ) && ! internalSpecializations . Contains ( s ) ) ) ;
100
+ {
101
+ if ( s . SpecializationKind == TemplateSpecializationKind . Undeclared ||
102
+ ( ! specializations . Contains ( s ) && ! internalSpecializations . Contains ( s ) ) )
103
+ {
104
+ s . ExplicitlyIgnore ( ) ;
105
+ return true ;
106
+ }
107
+ return false ;
108
+ } ) ;
102
109
103
110
foreach ( var specialization in template . Specializations . Where (
104
111
s => s is ClassTemplatePartialSpecialization ) )
Original file line number Diff line number Diff line change @@ -70,6 +70,11 @@ DerivedFromExternalSpecialization::~DerivedFromExternalSpecialization()
70
70
{
71
71
}
72
72
73
+ TemplateWithIndependentFields<Base3> DerivedFromExternalSpecialization::returnExternalSpecialization ()
74
+ {
75
+ return TemplateWithIndependentFields<Base3>();
76
+ }
77
+
73
78
HasVirtualInDependency::HasVirtualInDependency ()
74
79
{
75
80
}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class DLL_API DerivedFromExternalSpecialization : public TemplateWithIndependent
76
76
public:
77
77
DerivedFromExternalSpecialization ();
78
78
~DerivedFromExternalSpecialization ();
79
+ TemplateWithIndependentFields<Base3> returnExternalSpecialization ();
79
80
};
80
81
81
82
class DLL_API DerivedFromSecondaryBaseInDependency : public Derived, public SecondaryBase
You can’t perform that action at this time.
0 commit comments