diff --git a/Source/buildbindingccpp.go b/Source/buildbindingccpp.go index 5995eae2..c54855f8 100644 --- a/Source/buildbindingccpp.go +++ b/Source/buildbindingccpp.go @@ -1207,16 +1207,17 @@ func writeClassParamDefinition(w LanguageWriter, NameSpace string) { w.Writeln("") w.Writeln("template class classParam {") w.Writeln("private:") + w.Writeln(" std::shared_ptr m_sharedPtr;") w.Writeln(" const T* m_ptr;") w.Writeln("") w.Writeln("public:") w.Writeln(" classParam(const T* ptr)") - w.Writeln(" : m_ptr (ptr)") + w.Writeln(" : m_ptr(ptr)") w.Writeln(" {") w.Writeln(" }") w.Writeln("") w.Writeln(" classParam(std::shared_ptr sharedPtr)") - w.Writeln(" : m_ptr (sharedPtr.get())") + w.Writeln(" : m_sharedPtr(sharedPtr), m_ptr(sharedPtr.get())") w.Writeln(" {") w.Writeln(" }") w.Writeln("")