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

consider returning a unique_ptr with a custom deleter from peek() #45

Open
badair opened this issue Jul 21, 2017 · 1 comment
Open

consider returning a unique_ptr with a custom deleter from peek() #45

badair opened this issue Jul 21, 2017 · 1 comment
Assignees

Comments

@badair
Copy link

badair commented Jul 21, 2017

Have you considered this already? This way, unpeek() would be automatic.

@jonathan-beard
Copy link
Member

we have considered. the only issue is if I want to hold a reference to the head for multiple returns. Although, I suppose we could do a peek_s or something that would implement this. It could return an object then unpeek in the destructor.......will be a bit complicated for the data forwarding where the same pointer is passed from the input port to the output port but it could be managed.....will see if I can add this after I merge the development DSL parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants