3 ms·
C++....
by rhodysurf 11y ago
C++....
- danmaz74 11y agoI didn't work with C++ for 10 years now; is it now possible to declare a function "pure" and have checks that it doesn't have side effects?
- userbinator 11y agoIt's called "const". http://stackoverflow.com/questions/3141087/what-is-meant-with-const-at-end-of-function-declaration http://stackoverflow.com/questions/3141087/what-is-meant-wit...
- danmaz74 11y agoThat's interesting, but it's very far from making a pure function (ie, one that can't have side effects).