Comment

Comment by maartenscholl

What is going on with the second element in the final example?

    std::pair x {1, 2.0};
    auto [v, w] = x;
Why is the second element a float according to the blog post?

    std::tuple_element<0, std::pair<int, float> >::type&
parent maartenscholl 10 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton