2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

- no_init is now generated for abstract classes

[SVN r22312]
This commit is contained in:
Bruno da Silva de Oliveira
2004-02-18 15:27:59 +00:00
parent 62f0885852
commit 89be2fb736
2 changed files with 3 additions and 6 deletions

View File

@@ -253,12 +253,9 @@ class ClassExporter(Exporter):
constructors = [x for x in self.public_members if isinstance(x, Constructor)]
self.constructors = constructors[:]
# don't export the copy constructor if the class is abstract
# don't export constructors if the class is abstract
if self.class_.abstract:
for cons in constructors:
if cons.IsCopy():
constructors.remove(cons)
break
constructors = []
if not constructors:
# declare no_init
self.Add('constructor', py_ns + 'no_init')

View File

@@ -51,7 +51,7 @@ from CppParser import CppParser, CppParserError
import time
import declarations
__version__ = '0.9.28'
__version__ = '0.9.29'
def RecursiveIncludes(include):
'Return a list containg the include dir and all its subdirectories'