2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-02 09:02:15 +00:00

- Added MANUAL support for shared_ptr and auto_ptrs. In the future, support should be automatic.

[SVN r18041]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-21 14:24:20 +00:00
parent 6335716342
commit 12a4cc16be
5 changed files with 41 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ class ClassExporter(Exporter):
self.ExportOperators()
self.ExportNestedClasses(exported_names)
self.ExportNestedEnums()
self.ExportSmartPointer()
self.Write(codeunit)
@@ -540,6 +541,12 @@ class ClassExporter(Exporter):
codeunit = CodeUnit(None)
exporter.Export(codeunit, None)
self.nested_codeunits.append(codeunit)
def ExportSmartPointer(self):
smart_ptr = self.info.smart_ptr
if smart_ptr:
self.Add('template', smart_ptr % self.class_.FullName())
#==============================================================================