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

Extra Copy of Object in Future Somewhere #504

Open
KevinHopps opened this issue Oct 21, 2022 · 0 comments
Open

Extra Copy of Object in Future Somewhere #504

KevinHopps opened this issue Oct 21, 2022 · 0 comments

Comments

@KevinHopps
Copy link
Contributor

I have some code that returns a future object of my class vm::page_t and my internal bookkeeping tells me that there are two copies of thing when this continuation is called. If I set a breakpoint in its copy constructor, for example, I can see it being called from boost::optional_detail::optional_base<vm::page_t>::construct(vm::page_t const&)

f.then([](vm::page_t thing) { /* there is another copy of thing somewhere */ });

This may not seem like a big deal, because all of the copies are eventually destroyed, but this class depends on the number of copies being accurate.

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

1 participant