Comment by charcircuit

Comment by charcircuit 5 hours ago

0 replies

Taking a step back I think the issue is that your foo takes an rvalue reference. Which is not the case we are talking about which is whether a move or copy constructor is used when constructing the parameter of foo.