Skip to content

Commit

Permalink
Merge branch 'develop' into gangatp/fix_go
Browse files Browse the repository at this point in the history
  • Loading branch information
gangatp authored Dec 10, 2024
2 parents 06c7bae + 06f9086 commit b4f898c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/buildbindingccpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,16 +1207,17 @@ func writeClassParamDefinition(w LanguageWriter, NameSpace string) {
w.Writeln("")
w.Writeln("template<class T> class classParam {")
w.Writeln("private:")
w.Writeln(" std::shared_ptr<T> 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 <T> sharedPtr)")
w.Writeln(" : m_ptr (sharedPtr.get())")
w.Writeln(" : m_sharedPtr(sharedPtr), m_ptr(sharedPtr.get())")
w.Writeln(" {")
w.Writeln(" }")
w.Writeln("")
Expand Down

0 comments on commit b4f898c

Please sign in to comment.