1
#include <memory>

struct Something
{
    int x;
    long y;
};

int main()
{
    std::unique_ptr<Something> k = std::make_unique<Something>(0, 1);
    return 0;
}

This program compiles with g++ --std=c20. Why?

I could not deduce from this list which change supports this.

Compilation fails with g++ --std=c2a for obvious reasons.

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.