Quantcast
Channel: How can a function modify a parameter passed in by value in C++? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


How 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>