No Moves, In-Place Construction: Perfect Forwarding vs. Variadic Templates
In a small code snippet we will extend the post from the NetworkBuffer that we used in our previous article with lambdas and views. We will demonstrate the difference between variadic templates and perfect forwarding vs perfect forwarding. You can find the cpp file in the src-code of the blog repo. The Packet & Buffer - Code In the NetworkPacket we have kept only two member variables for simplicity. Then we make the move ctor and move assignment operator custom so we can see when they are called. ...