2 ms·
Right. I think the article is talking about one very specific case, which is apparently common amongst novice C++ programmers, where there is a single computati
by twic 6y ago
Right. I think the article is talking about one very specific case, which is apparently common amongst novice C++ programmers, where there is a single computation, whose only inputs come from the constructor, and which gets done in a method.
There are plenty of cases where it makes sense to wrap a function in an object, but the point of the article is that this isn't one of them!