Skip to content

Out optionalclass is not generating valid code in C++ implementation. #101 #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

alexanderoster
Copy link

If there is an out optionalclass value, the code generator creates a base result variable:
IBase * pBaseHandlerInstance(nullptr);

This leads to a compile error of the implementation. The class should be the correct output class, like
ISignalHandler * pBaseHandlerInstance(nullptr);

@alexanderoster alexanderoster merged commit 0f88ae7 into develop Jul 21, 2020
alexanderoster added a commit that referenced this pull request Jul 21, 2020
Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
alexanderoster added a commit that referenced this pull request Jul 21, 2020
* Fixed issue101 (#111)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Fixed issue101 (#114)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
alexanderoster added a commit that referenced this pull request Jul 23, 2020
* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* Stringoutfix (#109)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Golangarrayin (#110)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* support structarray

* update readme

* Added Golang InArrays

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
Co-authored-by: Quim Muntal Diaz <quim.muntal.diaz@hp.com>

* Fixed issue101 (#111) (#112)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Exchanged auto_ptr through unique_ptr

* Stringoutfix (#113)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* Exchanged auto_ptr through unique_ptr

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Develop (#115)

* Fixed issue101 (#111)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Fixed issue101 (#114)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Added checks for out parameters on global functions

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
Co-authored-by: Quim Muntal Diaz <quim.muntal.diaz@hp.com>
alexanderoster added a commit that referenced this pull request Jul 28, 2020
* Stringoutfix (#109)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Golangarrayin (#110)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* support structarray

* update readme

* Added Golang InArrays

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
Co-authored-by: Quim Muntal Diaz <quim.muntal.diaz@hp.com>

* Fixed issue101 (#111) (#112)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Stringoutfix (#113)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* Exchanged auto_ptr through unique_ptr

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Develop (#115)

* Fixed issue101 (#111)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Fixed issue101 (#114)

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Stringoutfix (#117)

* Added String Out fix for caching string calls

* Added Error checking for concurrent string and array out parameters

* Exchanged auto_ptr through unique_ptr

* Added checks for out parameters on global functions

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>

* Cgo (#118)

* support structarray

* update readme

* use cgo for go bindings

* ensure comments finish with a dot

* update readme go support

* simplify cast and return strings

* do not specify LDFLAGS

Co-authored-by: Quim Muntal Diaz <quim.muntal.diaz@hp.com>
Co-authored-by: qmuntal <quimmuntal@gmail.com>

* CGo now loads functions dynamically

* Fixed bugs in CGo Dynamic header generation

Co-authored-by: Alexander Oster <Alexander.Oster@autodesk.com>
Co-authored-by: Quim Muntal Diaz <quim.muntal.diaz@hp.com>
Co-authored-by: qmuntal <quimmuntal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants