Skip to content
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

Use of auto in cpp meta examples #4436

Closed
avramidis opened this issue Dec 14, 2018 · 1 comment
Closed

Use of auto in cpp meta examples #4436

avramidis opened this issue Dec 14, 2018 · 1 comment

Comments

@avramidis
Copy link
Contributor

This issue is relevant to #4423 In this PR the aim was to convert this python script to a meta example.

When using the factory method to create a CStringFeatures object it is returned as CFeatures. This is fine, however, in the case of generating the meta examples that use this functionality the return object is stored as auto. This doesn't allow the use of CStringFeatures functions.

The problem is caused by the auto in the code below

"Copy": "auto $name = wrap($expr)$kwargs",

Any ideas or pointers of how to fix this?

@karlnapf
Copy link
Member

As discussed, I think this is possible with put get, and potentially registering a lazy executed function with get, as done here and the corresponding example

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

No branches or pull requests

2 participants