Below, is source code that illustrates the puzzler: The compiler complains about a missing move constructor. When I supply the move constructor, the program compiles, links and runs successfully, but the move constructor is not executed (the print statement in the constructor is not invoked).
Here is the source code that produces the compile-time error:
tmove.cpp:28:13: error: use of deleted function ‘X::X(X&&)’
Thanks. I'd heard about this, but have never been bit before, so I did not clue in.
I want to know where this is happening, in case I have coded something not as I would wish,
so the -fno-elide-constructors flag is useful during development, to be able to step into the code where the elision would be happening.