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

Allow re-targetting slots during move-construction. #15

Merged
merged 2 commits into from
Jul 23, 2019

Conversation

jkuebart
Copy link
Collaborator

Note the last line.

std::vector<Target<Noisy>> noisies{"Vectorbert"};
constructed Vectorbert

auto vecRef{noisies.front().ptr()};
vecRef=Vectorbert

for (int i{0}; i != 4; ++i) {
constructed goodbye
move-constructed from Vectorbert
destructed ex-Vectorbert
constructed goodbye
move-constructed from goodbye
move-constructed from Vectorbert
destructed ex-goodbye
destructed ex-Vectorbert
constructed goodbye
constructed goodbye
move-constructed from goodbye
move-constructed from goodbye
move-constructed from goodbye
move-constructed from Vectorbert
destructed ex-goodbye
destructed ex-goodbye
destructed ex-goodbye
destructed ex-Vectorbert
vecRef=Vectorbert

@mqnc mqnc merged commit 5c3c51a into mqnc:pointers Jul 23, 2019
@jkuebart jkuebart deleted the retarget branch July 24, 2019 05:26
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