↧
Answer by Werner Erasmus for How can a function modify a parameter passed in...
I'm quite at a loss, especially the first line ("= delete") The "= delete" effectively ensures that operator= (the assignment operator...) cannot be called, and that the default (assignment operator)...
View ArticleHow can a function modify a parameter passed in by value in C++?
Basically this is a question about semantics. I'm using Cereal library for (de)serialization in C++, and found its coding style interesting:cereal::PortableBinaryInputArchive ar(instream);int...
View Article