prog.cpp: In function ‘A f()’:
prog.cpp:14:14: error: use of deleted function ‘constexpr A::A(const A&)’
return r;
^
prog.cpp:3:12: note: ‘constexpr A::A(const A&)’ is implicitly declared as deleted because ‘A’ declares a move constructor or move assignment operator
struct A {
^