Comment

Comment by foota

Isn't the example with re-using a moved c++ vector completely safe?

    std::vector<int> x = {1, 2, 3};
    process(std::move(x));
    x.push_back(4);
    // Runtime invalid memory access
parent foota 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton