prog.cpp: In function ‘int main()’:
prog.cpp:12:23: error: invalid initialization of reference of type ‘int (&&)[]’ from expression of type ‘std::_MakeUniq<int []>::__array’ {aka ‘std::unique_ptr<int [], std::default_delete<int []> >’}
f(std::make_unique<A>(10))
~~~~~~~~~~~~~~~~~~~^~~~
prog.cpp:7:6: note: in passing argument 1 of ‘void f(int (&&)[])’
void f(A&& a) {
^