Browse Source

Prevented class templates from being static.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/787/head
Dimitar Dobrev 9 years ago
parent
commit
ab62115edc
  1. 3
      src/Generator/Passes/CheckStaticClass.cs

3
src/Generator/Passes/CheckStaticClass.cs

@ -99,6 +99,9 @@ namespace CppSharp.Passes @@ -99,6 +99,9 @@ namespace CppSharp.Passes
if (@class.IsOpaque)
return false;
if (@class.IsDependent)
return false;
// TODO: We should take C++ friends into account here, they might allow
// a class to be instantiated even it if's not possible to instantiate
// it using just its regular members.

Loading…
Cancel
Save