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:
@@ -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())
|
||||
|
||||
|
||||
#==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user